to
to copied to clipboard
Aggressive data type conversions for Go
Results
1
to issues
Sort by
recently updated
recently updated
newest added
Sample: ``` package main import ( "fmt" "strconv" "github.com/xiam/to" ) func main() { fmt.Println(to.Int64(35.24))//Expects 35; Received: 35 fmt.Println(to.Int(35.24))//Expect 35; Received: 35 fmt.Println(to.Int64("35.24")) //Expect 35; Received: 0 fmt.Println(to.Int("35.24")) //Expect 35; Received:...