style: gofmt struct-tag alignment across v0 files

v0 landed with a few misaligned struct tags and fields; gofmt -l
flagged categories.go, topics.go, discourse_test.go and the smoke
fake. Alignment only, no behavior change, so the tree passes the
gofmt gate cleanly.
This commit is contained in:
2026-08-29 16:20:44 -05:00
parent f9cf30bc72
commit f51ca5900c
4 changed files with 13 additions and 13 deletions
+7 -7
View File
@@ -28,13 +28,13 @@ type Category struct {
// means "default: everyone full" — for restricted categories set it
// explicitly, e.g. {"staff": 3, "trust_level_0": 1}.
type CreateCategoryRequest struct {
Name string `json:"name"`
Color string `json:"color"` // 6 hex digits, no '#'
TextColor string `json:"text_color"` // 6 hex digits, no '#'
Permissions map[string]int `json:"permissions,omitempty"`
Position int `json:"position,omitempty"`
ParentCategoryID int `json:"parent_category_id,omitempty"`
Description string `json:"description,omitempty"`
Name string `json:"name"`
Color string `json:"color"` // 6 hex digits, no '#'
TextColor string `json:"text_color"` // 6 hex digits, no '#'
Permissions map[string]int `json:"permissions,omitempty"`
Position int `json:"position,omitempty"`
ParentCategoryID int `json:"parent_category_id,omitempty"`
Description string `json:"description,omitempty"`
}
// ListCategories returns the instance's categories (one request; the