Documentation
¶
Index ¶
- func GetFileInfo(path string) (os.FileInfo, error)
- func GetFileModTime(path string) int64
- func GetPathDir(path string, contain []string) []string
- func GetVailDir(paths []string, contain []string) []string
- func InArray(in string, arr []string) bool
- func IsDir(dir string) bool
- func IsExist(path string) bool
- func IsFile(path string) bool
- func IsGoP() bool
- func IsRustP() bool
- func Md5(s string) string
- func Md5Byte(buf []byte) string
- func ReadFile(file string) (string, error)
- func RunCommand(command string, args ...string) (string, error)
- func WriteFile(file string, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileInfo ¶ added in v0.0.7
GetFileInfo returns file information for the given path
func GetFileModTime ¶
GetFileModTime returns unix timestamp of `os.File.ModTime` for the given path with caching
func GetPathDir ¶
func GetVailDir ¶
func IsDir ¶
IsDir returns true if given path is a directory, and returns false when it's a file or does not exist.
func RunCommand ¶ added in v0.0.7
RunCommand executes a shell command and returns the output
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.