Documentation ¶
Index ¶
- func IsEq[A ~string, B ~string](a A) func(B) bool
- func Join[A ~string](values []A, sep string) string
- func MarshalJSON[E ~string](e E) ([]byte, error)
- func MarshalXML[E ~string](e E, enc *xml.Encoder, start xml.StartElement) error
- func MarshalYAML[E ~string](e E) (interface{}, error)
- func Scan[E ~string](value interface{}, e *E, parser func(string) (E, error)) error
- func UnmarshalJSON[E ~string](data []byte, e *E, parser func(string) (E, error)) error
- func UnmarshalXML[E ~string](e *E, parser func(string) (E, error), d *xml.Decoder, start xml.StartElement) error
- func UnmarshalYAML[E ~string](unmarshal func(interface{}) error, e *E, parser func(string) (E, error)) error
- func Value[E ~string](e E) (driver.Value, error)
- type EnumData
- type EnumSerialize
- type EnumValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalJSON ¶ added in v1.0.6
func MarshalXML ¶ added in v1.0.20
func MarshalYAML ¶ added in v1.0.6
func UnmarshalJSON ¶ added in v1.0.6
func UnmarshalXML ¶ added in v1.0.20
func UnmarshalYAML ¶ added in v1.0.6
Types ¶
type EnumData ¶ added in v1.0.21
type EnumData struct { Type string `json:"type" yaml:"type"` Struct string `json:"struct" yaml:"struct"` Package string `json:"package" yaml:"package"` InputPath string `json:"input-path" yaml:"input-path"` OutputPath string `json:"output-path" yaml:"output-path"` Desc string `json:"desc" yaml:"desc"` Header string `json:"header" yaml:"header"` HeaderFrom string `json:"header-from" yaml:"header-from"` HeaderLines []string `json:"header-lines" yaml:"header-lines"` SkipFormat bool `json:"skip-format" yaml:"skip-format"` Debug bool `json:"debug" yaml:"debug"` Overwrite bool `json:"overwrite" yaml:"overwrite"` Serialize EnumSerialize `json:"serialize" yaml:"serialize"` Values []EnumValue `json:"values" yaml:"values"` }
type EnumSerialize ¶ added in v1.0.21
Click to show internal directories.
Click to hide internal directories.