Documentation ¶
Index ¶
- Constants
- Variables
- func CloseBody(body io.Closer)
- func CoerceBool(into *bool, v interface{}) error
- func CoerceFloat(into *float64, v interface{}) error
- func CoerceInt(into *int, v interface{}) error
- func CoerceInt64(into *int64, v interface{}) error
- func CoerceStringArray(into *[]string, v interface{}) error
- func CoerceUInt32(into *uint32, v interface{}) error
- func UnwrapJSONString(b []byte) (string, error)
- func WrapEnumTypeJSON(s fmt.Stringer) ([]byte, error)
- type CoercedBool
- type CoercedFloat
- type CoercedInt
- type CoercedInt64
- type CoercedStringArray
- type CoercedUInt32
- type XEnum
- type XEnumKind
Constants ¶
View Source
const (
PackageVersion = "1.0.0"
)
View Source
const Undef = "undef"
Variables ¶
View Source
var ( ErrInvalidEnumValue = errors.New("invalid enum value") ErrInvalidJSONString = errors.New("invalid JSON string") )
View Source
var (
ErrInvalidType = errors.New("invalid type")
)
Functions ¶
func CoerceBool ¶
func CoerceFloat ¶
func CoerceInt64 ¶
func CoerceStringArray ¶
func CoerceUInt32 ¶
func UnwrapJSONString ¶
Types ¶
type CoercedBool ¶
type CoercedBool struct{ Value bool }
func (*CoercedBool) UnmarshalJSON ¶
func (c *CoercedBool) UnmarshalJSON(data []byte) error
type CoercedFloat ¶
type CoercedFloat struct{ Value float64 }
func (*CoercedFloat) UnmarshalJSON ¶
func (c *CoercedFloat) UnmarshalJSON(data []byte) error
type CoercedInt ¶
type CoercedInt struct{ Value int }
func (*CoercedInt) UnmarshalJSON ¶
func (c *CoercedInt) UnmarshalJSON(data []byte) error
type CoercedInt64 ¶
type CoercedInt64 struct{ Value int64 }
func (*CoercedInt64) UnmarshalJSON ¶
func (c *CoercedInt64) UnmarshalJSON(data []byte) error
type CoercedStringArray ¶
type CoercedStringArray struct{ Value []string }
func (*CoercedStringArray) UnmarshalJSON ¶
func (c *CoercedStringArray) UnmarshalJSON(data []byte) error
type CoercedUInt32 ¶
type CoercedUInt32 struct{ Value uint32 }
func (*CoercedUInt32) UnmarshalJSON ¶
func (c *CoercedUInt32) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.