mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-18 08:26:45 +02:00
20 lines
250 B
Go
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)
|
|
}
|