Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsJSONFile ¶
IsJSONFile returns true if a given file path corresponds to a JSON file
func IsYAMLFile ¶
IsYAMLFile returns true if a given file path corresponds to a YAML file
Types ¶
type Format ¶
type Format int
Format is an enum type
func FormatForPath ¶
FormatForPath returns the correct format given the path to a file
func FormatForPathOrString ¶
FormatForPathOrString returns the correct format-specific implementation of the Store interface given the formatString if specified, or the path to a file. This is to support the cli, where both are provided.
func FormatFromString ¶
FormatFromString returns a Format from a string. This is used for converting string cli options.
Click to show internal directories.
Click to hide internal directories.