Documentation
¶
Index ¶
- Variables
- func Die(format string, args ...interface{})
- func FileExist(filePath string) (e bool)
- func FileModTime(filePath string) int
- func FileNotExist(filePath string) (e bool)
- func FileSize(filePath string) int64
- func FileUsable(filePath string) (e bool)
- func GetType(v interface{}) string
- func IsHexDigit(c rune) bool
- func ItemInList(arg string, argList []string) bool
- func LastElem(s, splitter string) string
- func LoadFileJson(filePath string) (jsonObject interface{}, err error)
- func LoadFileYaml(filePath string) (yamlObject interface{}, err error)
- func MergeMaps(m1, m2 map[string]string) (result map[string]string)
- func MergeObjects(x, y map[string]interface{}) (obj map[string]interface{})
- func PadSpaces(n int)
- func Prettify(jsonObject interface{}) (pretty string, err error)
- func PrintJson(jsonObject interface{})
- func PrintYaml(yamlObject interface{})
- func RemoveFile(filePath string)
- func SameType(a, b interface{}) bool
- func SaveFileJson(jsonObject interface{}, filePath string)
- func SaveFileYaml(yamlObject interface{}, filePath string)
- func Str(x interface{}) string
- func SubString(large, small string) bool
- func Trace() string
- func ValidUuid(s string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Red = color.FgLightRed.Render Blu = color.FgLightBlue.Render Gre = color.FgGreen.Render Yel = color.FgYellow.Render Whi = color.FgWhite.Render Cya = color.FgCyan.Render Mag = color.FgLightMagenta.Render Gra = color.FgDarkGray.Render Red2 = color.FgRed.Render Blu2 = color.FgBlue.Render Gre2 = color.FgLightGreen.Render Yel2 = color.FgLightYellow.Render Whi2 = color.FgLightWhite.Render Cya2 = color.FgLightCyan.Render Mag2 = color.FgMagenta.Render )
Functions ¶
func FileModTime ¶
func FileNotExist ¶
func FileUsable ¶
func IsHexDigit ¶ added in v1.0.6
func ItemInList ¶
func LoadFileJson ¶
func LoadFileYaml ¶
func MergeObjects ¶
func RemoveFile ¶
func RemoveFile(filePath string)
func SaveFileJson ¶
func SaveFileJson(jsonObject interface{}, filePath string)
func SaveFileYaml ¶
func SaveFileYaml(yamlObject interface{}, filePath string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.