Documentation
¶
Index ¶
- func IsNilErr(err error) bool
- type Caster
- func (this Caster) Bool() (bool, error)
- func (this Caster) BoolSafe(fallback bool) bool
- func (this Caster) Float32() (float32, error)
- func (this Caster) Float32Safe(fallback float32) float32
- func (this Caster) Float64() (float64, error)
- func (this Caster) Float64Safe(fallback float64) float64
- func (this Caster) Int() (int, error)
- func (this Caster) Int16() (int16, error)
- func (this Caster) Int16Safe(fallback int16) int16
- func (this Caster) Int32() (int32, error)
- func (this Caster) Int32Safe(fallback int32) int32
- func (this Caster) Int64() (int64, error)
- func (this Caster) Int64Safe(fallback int64) int64
- func (this Caster) Int8() (int8, error)
- func (this Caster) Int8Safe(fallback int8) int8
- func (this Caster) IntSafe(fallback int) int
- func (this Caster) Interface() (interface{}, error)
- func (this Caster) IsNil() bool
- func (this Caster) Raw() interface{}
- func (this Caster) String() (string, error)
- func (this Caster) StringSafe(fallback string) string
- func (this Caster) UInt() (uint, error)
- func (this Caster) UInt16() (uint16, error)
- func (this Caster) UInt16Safe(fallback uint16) uint16
- func (this Caster) UInt32() (uint32, error)
- func (this Caster) UInt32Safe(fallback uint32) uint32
- func (this Caster) UInt64() (uint64, error)
- func (this Caster) UInt64Safe(fallback uint64) uint64
- func (this Caster) UInt8() (uint8, error)
- func (this Caster) UInt8Safe(fallback uint8) uint8
- func (this Caster) UIntSafe(fallback uint) uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Caster ¶
type Caster struct {
// contains filtered or unexported fields
}
func (Caster) Float32Safe ¶
Float32Safe parse data as float32 or return fallback
func (Caster) Float64Safe ¶
Float64Safe parse data as float64 or return fallback
func (Caster) StringSafe ¶
StringSafe parse data as string or return fallback
func (Caster) UInt16Safe ¶
UInt16Safe parse data as uint16 or return fallback
func (Caster) UInt32Safe ¶
UInt32Safe parse data as uint32 or return fallback
func (Caster) UInt64Safe ¶
UInt64Safe parse data as uint64 or return fallback
Click to show internal directories.
Click to hide internal directories.