Documentation
¶
Overview ¶
Package transform provides value and string conversion helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Capitalize ¶
Capitalize uppercases the first byte of s and leaves the rest unchanged.
func ParseAsString ¶
ParseAsString returns an empty string for nil, otherwise the formatted value.
func ParseJson ¶
func ParseJson(data interface{}) string
ParseJson returns data as indented JSON or the marshal error message.
func ParseYaml ¶
func ParseYaml(data interface{}) (out string)
ParseYaml returns data as YAML indented with two spaces or the marshal error message.
func StringBool ¶
StringBool reports whether value is one of the accepted true strings.
Types ¶
This section is empty.