Documentation
¶
Index ¶
- func CreateTempFile() (string, error)
- func Exists(fileName string) bool
- func Existsp(name *string) bool
- func GetExtension(name string) string
- func HasExtension(filename, extension string) bool
- func HasExtensions(filename string, extensions []string) (result bool)
- func HasJsonExtension(filename string) bool
- func HasYamlExtension(filename string) bool
- func IsValidYaml(filename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTempFile ¶
CreateTempFile - Create a temporary file in a temporary directory (uses uuid for the context)
func GetExtension ¶
GetExtension - return the given file's extension
func HasExtension ¶
HasExtension - return boolean result if a YAML extension exists
func HasExtensions ¶
HasExtensions - return boolean if file has any of a list of extensions
func HasJsonExtension ¶
HasJsonExtension - return boolean result if JSON extension exists (case-insensitive)
func HasYamlExtension ¶
HasYamlExtension - return boolean result if a YAML extension exists
func IsValidYaml ¶
IsValidYaml - Return boolean if YAML can be opened and unmarshalled without error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.