hatmill/attribute/value_types.go
2019-08-31 09:56:56 -06:00

23 lines
350 B
Go

package attribute
import "strings"
import "strconv"
type SpaceList []string
func (l SpaceList) String() string {
return strings.Join(l, " ")
}
type CommaList []string
func (l CommaList) String() string {
return strings.Join(l, ",")
}
type Float float32
func (f Float) String() string {
return strconv.FormatFloat(float64(f), 'G', -1, 32)
}