Skip to content

v0.2.4

Compare
Choose a tag to compare
@shockerli shockerli released this 06 Sep 14:35
· 16 commits to master since this release

Features

  • Bool improve performance for direct type
  • Bool support time.Duration
  • Bool support json.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