Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadTestData ¶
func SetupSingle ¶
func SetupSingle(input *TestStructA, expected *map[string]any) error
Types ¶
type TestNested ¶
type TestNestedTwice ¶
type TestNestedTwice struct {
FieldC TestNested `json:"fieldC" explain:"Explanation for field C"`
}
type TestStructA ¶
type TestStructA struct {
SimpleField string `json:"simpleField" explain:"A simple string field"`
NumberField int `json:"numberField" explain:"A numeric field"`
Nested TestNested `json:"nested" explain:"Nested struct"`
NestedTwice TestNestedTwice `json:"nestedTwice" explain:"Twice nested struct"`
Pointer *TestNested `json:"pointer" explain:"Pointer to nested"`
Slice []TestNested `json:"slice" explain:"Slice of nested structs"`
}
type TestStructB ¶
type TestStructB struct {
SimpleField string `json:"simpleField" explain:"A simple string field"`
NumberField int `json:"numberField" explain:"A numeric field"`
Nested TestNested `json:"nested" explain:"Nested struct"`
Pointer *TestNested `json:"pointer" explain:"Pointer to nested"`
Slice []TestNested `json:"slice" explain:"Slice of nested structs"`
}
Click to show internal directories.
Click to hide internal directories.