mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-16 20:45:29 +00:00
19 lines
250 B
Go
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)
|
|
}
|