Documentation
¶
Index ¶
- Constants
- func AddFileExtension(filename, outputType string) string
- func FormatImage(image string) string
- func GenerateURN(nid string) string
- func IsDir(path string) bool
- func IsDirExists(path string) (bool, error)
- func IsFileExists(path string) (bool, error)
- func SaveToFile(data interface{}, path, format string) error
- func SplitAndAppendStrings(target []string) []string
- func SplitContentsByEmptyLine(contents string) []string
- func SplitString(str string) []string
- func StringSliceContains(s []string, e string) bool
- func ToJSON(t interface{}) ([]byte, error)
- func ToTitle(str string) string
- func ToXML(data interface{}) ([]byte, error)
- func ToYAML(t interface{}) ([]byte, error)
- func WriteFile(data []byte, path string) error
- func WriteYAML(t interface{}, path string) error
Constants ¶
View Source
const ( DefaultImageTag string = "latest" ImageSeparator string = ":" )
Variables ¶
This section is empty.
Functions ¶
func AddFileExtension ¶
func FormatImage ¶
FormatImage set default image tag if not provided
func GenerateURN ¶
func IsDir ¶
IsDir checks if the given input is a directory. It returns true if the input is a directory, false otherwise.
func IsDirExists ¶
IsDirExists checks if a directory exists and is valid.
func IsFileExists ¶
IsFileExists checks if a file exists and is valid.
func SaveToFile ¶
func SplitAndAppendStrings ¶
func SplitString ¶
func StringSliceContains ¶
StringSliceContains checks if a string slice contains specified string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.