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,omitempty" yaml:"type,omitempty"` Struct string `json:"struct,omitempty" yaml:"struct,omitempty"` Package string `json:"package,omitempty" yaml:"package,omitempty"` InputPath string `json:"input-path,omitempty" yaml:"input-path,omitempty"` OutputPath string `json:"output-path,omitempty" yaml:"output-path,omitempty"` Desc string `json:"desc" yaml,omitempty:"desc,omitempty"` Header string `json:"header,omitempty" yaml:"header,omitempty"` HeaderFrom string `json:"header-from,omitempty" yaml:"header-from,omitempty"` HeaderLines []string `json:"header-lines,omitempty" yaml:"header-lines,omitempty"` SkipFormat bool `json:"skip-format,omitempty" yaml:"skip-format,omitempty"` Debug bool `json:"debug,omitempty" yaml:"debug,omitempty"` Overwrite bool `json:"overwrite,omitempty" yaml:"overwrite,omitempty"` Serialize EnumSerialize `json:"serialize,omitempty" yaml:"serialize,omitempty"` Values []EnumValue `json:"values,omitempty" yaml:"values,omitempty"` Translate map[string]string `json:"translate,omitempty" yaml:"translate,omitempty"` }
type EnumSerialize ¶ added in v1.0.21
type EnumValue ¶ added in v1.0.21
type EnumValue struct { Name string `json:"name,omitempty" yaml:"name,omitempty"` Desc string `json:"desc,omitempty" yaml:"desc,omitempty"` Serialized string `json:"serialized,omitempty" yaml:"serialized,omitempty"` ParseFrom []string `json:"parse-from,omitempty" yaml:"parse-from,omitempty"` Translate map[string]string `json:"translate,omitempty" yaml:"translate,omitempty"` }
Click to show internal directories.
Click to hide internal directories.