Skip to content

Update Logs

Anderson Lu edited this page May 30, 2019 · 5 revisions

2019-05-30 13:30

Tagv1.3 is released !

Add following functions for v1.3

ValStr() (bool, string)
ValInt64() (bool, int64)
ValInt32() (bool, int32)
ValInt16() (bool, int16)
ValInt() (bool, int)
ValFloat32() (bool,float32)
ValFloat32N(int) (bool,float32)
ValFloat64() (bool,float64)
ValFloat64N(int) (bool,float64)
ValBool() (bool,bool)

2018-09-16 11:50

Tag v1.0 is released !

2018-09-16 11:25

Add ValueFloat64N(spec int) and ValueFloat32N(spec int) method.

func Demo() {
  fsion := gofasion.NewFasion(`{value:1.23456}`)
  f64 := fsion.Get("value").Float64()    //result is 1.23456
  f64N := fsion.Get("value").Float64N(3) //result is 1.235
  fmt.Println(f64,f64N)
}

Most popular projects Gofasion
Goclock

Clone this wiki locally