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 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 ( // Some basic colors Red = "\033[1;31m" Gre = "\033[0;32m" Blu = "\033[1;34m" Yel = "\033[0;33m" Pur = "\033[1;35m" Cya = "\033[0;36m" Rst = "\033[0m" )
Functions ¶
func FileModTime ¶
func FileNotExist ¶
func FileUsable ¶
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.