Documentation ¶
Index ¶
Constants ¶
View Source
const ( // JSON https://pkg.go.dev/encoding/json JSON // TOML https://pkg.go.dev/github.com/pelletier/go-toml TOML // YAML https://pkg.go.dev/gopkg.in/yaml.v3 YAML )
Variables ¶
View Source
var Available = func() string { ret := make([]string, len(FormatMap)) i := 0 for k := range FormatMap { ret[i] = k i++ } return strings.Join(ret, " ") }()
Available is string implementation of all formats. Can be used with flag package Example:
'json toml yaml'
FormatMap is a map implementation of all formats Can be used with flag package
Functions ¶
func FlagString ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.