Documentation ¶
Index ¶
- Variables
- func ByteToInt64(b []byte) (int64, error)
- func Int64ToByte(i int64) ([]byte, error)
- func ToFloat32(s string) (float32, error)
- func ToFloat64(s string) (float64, error)
- func ToInt32(s string) (int32, error)
- func ToInt64(s string) (int64, error)
- func ToString(src interface{}) string
- type Type
- func (t *Type) Bool() (bool, error)
- func (t *Type) BoolOr(value bool) bool
- func (t *Type) Float32() (float32, error)
- func (t *Type) Float32Or(value float32) float32
- func (t *Type) Float32Slice() []float32
- func (t *Type) Float64() (float64, error)
- func (t *Type) Float64Or(value float64) float64
- func (t *Type) Float64Slice() []float64
- func (t *Type) Int() (int, error)
- func (t *Type) Int32() (int32, error)
- func (t *Type) Int32Or(value int32) int32
- func (t *Type) Int32Slice() []int32
- func (t *Type) Int64() (int64, error)
- func (t *Type) Int64Or(value int64) int64
- func (t *Type) Int64Slice() []int64
- func (t *Type) IntOr(value int) int
- func (t *Type) IntSlice() []int
- func (t *Type) Interface() interface{}
- func (t *Type) IsEmpty() bool
- func (t *Type) IsZero() bool
- func (t *Type) Slice(sliceKind reflect.Kind) interface{}
- func (t *Type) String() (string, error)
- func (t *Type) StringOr(value string) string
- func (t *Type) UInt64Slice() []uint64
- func (t *Type) UIntSlice() []uint
- func (t *Type) Uint64() (uint64, error)
- func (t *Type) Uint64Or(value uint64) uint64
Constants ¶
This section is empty.
Variables ¶
View Source
var TypeError = errors.New("type error")
Functions ¶
func ByteToInt64 ¶
func Int64ToByte ¶
Types ¶
type Type ¶
func (*Type) Float32Slice ¶
func (*Type) Float64Slice ¶
func (*Type) Int32Slice ¶
func (*Type) Int64Slice ¶
func (*Type) UInt64Slice ¶
Click to show internal directories.
Click to hide internal directories.