Documentation
¶
Index ¶
- func BytesToString(bytes []byte) string
- func FileExist(name string) (existed bool, isDir bool)
- func FileExists(name string) (existed bool)
- func FileMode(path string) os.FileMode
- func HandleHomedir(filePath string) string
- func IsTesting() bool
- func JSONToMap(jsonStr string) (map[string]string, error)
- func MapToJSON(m map[string]string) (string, error)
- func RunBashCommand(cmd string) (err error)
- func StringToBytes(s string) []byte
- func WriteStringToFile(content, path string, mode os.FileMode) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
FileExists reports whether the named file or directory exists.
func HandleHomedir ¶
HandleHomedir replace ~ with homeDir
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.