Documentation ¶
Index ¶
- Variables
- func AsInt64(v interface{}, defaultInteger int64) (int64, error)
- func RegisterEnum(enumType string, optionValue string, label string)
- func RegisterEnums(enumType string, values map[string]string)
- type Bool
- func (Bool) Enums() map[int][]string
- func (v Bool) Label() string
- func (v Bool) MarshalJSON() ([]byte, error)
- func (v Bool) MarshalText() ([]byte, error)
- func (v Bool) String() string
- func (v Bool) True() bool
- func (v *Bool) UnmarshalJSON(data []byte) (err error)
- func (v *Bool) UnmarshalText(data []byte) (err error)
- type Enum
- type EnumOption
Constants ¶
This section is empty.
Variables ¶
View Source
var EnumMap = map[string]Enum{}
View Source
var InvalidBool = errors.New("invalid Bool")
Functions ¶
func RegisterEnum ¶
@deprecated
func RegisterEnums ¶
Types ¶
type Bool ¶
type Bool uint8
swagger:enum
func BoolFromBool ¶
func ParseBoolFromString ¶
func (Bool) MarshalJSON ¶
func (Bool) MarshalText ¶
func (*Bool) UnmarshalJSON ¶
func (*Bool) UnmarshalText ¶
type Enum ¶
type Enum []EnumOption
type EnumOption ¶
type EnumOption struct { Val interface{} `json:"val"` Value interface{} `json:"value"` Label string `json:"label"` }
func GetEnumValueList ¶
func GetEnumValueList(enumType string) (enumList []EnumOption, found bool)
Click to show internal directories.
Click to hide internal directories.