Releases: shockerli/cvt
Releases · shockerli/cvt
v0.2.8
v0.2.7
v0.2.6
v0.2.5
Features
Time*()improve performance for direct typeTime*()supporttime.DurationTime*()supportjson.NumberTime*()support indirect oftime.TimeFloat*()improve performance for direct typeFloat*()supporttime.DurationFloat*()supportjson.NumberIndirect()has exportedfunc Indirect(a interface{}) (val interface{}, rv reflect.Value)
v0.2.4
Features
Boolimprove performance for direct typeBoolsupporttime.DurationBoolsupportjson.Number- Support new functions:
Field/SliceInt/SliceInt64/SliceFloat64/SliceString
func Field(v interface{}, field interface{}, def ...interface{}) interface{}
func SliceInt(v interface{}, def ...[]int) []int
func SliceInt64(v interface{}, def ...[]int64) []int64
func SliceFloat64(v interface{}, def ...[]float64) []float64
func SliceString(v interface{}, def ...[]string) []string- Documents site: https://cvt.shockerli.net
v0.2.3
Features
- support
*Pfunctions return the pointer of converted value #6
BoolP(v interface{}, def ...bool) *bool
StringP(v interface{}, def ...string) *string
Float32P(v interface{}, def ...float32) *float32
Float64P(v interface{}, def ...float64) *float64
Uint64P(v interface{}, def ...uint64) *uint64
Uint32P(v interface{}, def ...uint32) *uint32
Uint16P(v interface{}, def ...uint16) *uint16
Uint8P(v interface{}, def ...uint8) *uint8
UintP(v interface{}, def ...uint) *uint
Int64P(v interface{}, def ...int64) *int64
Int32P(v interface{}, def ...int32) *int32
Int16P(v interface{}, def ...int16) *int16
Int8P(v interface{}, def ...int8) *int8
IntP(v interface{}, def ...int) *int