zfs-localpv/vendor/github.com/jpillora/go-ogle-analytics/conv.go
Pawan dc5edb901c feat(analytics): vendor code for google analytics
Signed-off-by: Pawan <pawan@mayadata.io>
2020-03-02 23:00:22 +05:30

19 lines
250 B
Go

package ga
import "fmt"
func bool2str(val bool) string {
if val {
return "1"
} else {
return "0"
}
}
func int2str(val int64) string {
return fmt.Sprintf("%d", val)
}
func float2str(val float64) string {
return fmt.Sprintf("%.6f", val)
}