Documentation
¶
Index ¶
Constants ¶
View Source
const ( Yes enumOptionalBool = (-1 + iota) No Maybe )
View Source
const ( SA enumString = "va" // sddA SB enumString = "vb" // sddB SC enumString = "vc" // sddC SD enumString = "vd" // sddD )
View Source
const SpecialValue notAnEnum = "dummy" // gomacro:no-enum
View Source
const (
Value = 1 // not named const are ignored
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComplexStruct ¶
type ComplexStruct struct { DictWithTag map[int]int `json:"with_tag"` NoJSON EnumInt `json:"-"` Time time.Time B string Value ItfType L ItfList A int E EnumInt E2 EnumUInt Date MyDate F [5][5]bool Imported subpackage.StructWithComment EnumMap map[EnumInt]bool // contains filtered or unexported fields }
type ConcretType1 ¶
type ConcretType2 ¶
type ConcretType2 struct {
D float64
}
A regular comment gomacro:SQL special sql comment gomacro:SQL another special sql comment
type EnumInt ¶
type EnumInt int
this is represented by int values, but actually has only positive values
type RecursiveType ¶
type RecursiveType struct {
Children []RecursiveType
}
type StructWithExternalRef ¶
type StructWithExternalRef struct { Field1 subpackage.NamedSlice Field2 subpackage.NamedSlice Field3 int }
type WithEmbeded ¶
type WithEmbeded struct { ComplexStruct // contains filtered or unexported fields }
type WithOpaque ¶
type WithOpaque struct { F1 StructWithExternalRef `gomacro-opaque:"dart"` F2 RecursiveType `gomacro-opaque:"dart, typescript"` F3 StructWithExternalRef `gomacro-opaque:" typescript"` }
Click to show internal directories.
Click to hide internal directories.