1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-18 08:26:45 +02:00
woodpecker/vendor/github.com/jpillora/go-ogle-analytics/conv.go
2017-07-12 14:04:21 -04:00

20 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)
}