Source File
any_float.go
Belonging Package
github.com/json-iterator/go
package jsoniterimport ()type floatAny struct {baseAnyval float64}func ( *floatAny) () *Iterator {return nil}func ( *floatAny) () ValueType {return NumberValue}func ( *floatAny) () Any {return}func ( *floatAny) () error {return nil}func ( *floatAny) () bool {return .ToFloat64() != 0}func ( *floatAny) () int {return int(.val)}func ( *floatAny) () int32 {return int32(.val)}func ( *floatAny) () int64 {return int64(.val)}func ( *floatAny) () uint {if .val > 0 {return uint(.val)}return 0}func ( *floatAny) () uint32 {if .val > 0 {return uint32(.val)}return 0}func ( *floatAny) () uint64 {if .val > 0 {return uint64(.val)}return 0}func ( *floatAny) () float32 {return float32(.val)}func ( *floatAny) () float64 {return .val}func ( *floatAny) () string {return strconv.FormatFloat(.val, 'E', -1, 64)}func ( *floatAny) ( *Stream) {.WriteFloat64(.val)}func ( *floatAny) () interface{} {return .val}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |