Documentation ¶
Index ¶
- func Contains(obj interface{}, target interface{}) bool
- func ContainsStr(slice []string, item string) bool
- func CopyFile(src, dst string) bool
- func CopyPath(src, dst string) bool
- func CreateDir(string2 string) error
- func DirDot() string
- func ExecShell(shell string, dir string) (stdout string, stderr string)
- func Explode(delimiter, datastr string) (arr []string)
- func FileExists(path string) (bool, error)
- func GetCurrentDirectory() string
- func GetFileInfo(src string) os.FileInfo
- func GetRandStr(n int) (randStr string)
- func IFF[T any](yes bool, a, b T) T
- func IFN[T any](yes bool, a, b func() T) T
- func LowercaseFirst(str string) string
- func Md5String(str string) string
- func Md5ToLower(str string) string
- func Md5ToUpper(str string) string
- func MergeMap(source map[string][]string, tagret map[string][]string)
- func NewLine() string
- func PadLeft(s string, pad string, plength int) string
- func PathExists(path string) (bool, error)
- func RemoveFile(filePath string) error
- func Substr(str string, start int, length int) string
- func Try(userFn func(), catchFn func(err interface{}))
- func UppercaseFirst(str string) string
- func WriteFile(filePath string, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsStr ¶
func FileExists ¶
func GetCurrentDirectory ¶
func GetCurrentDirectory() string
func GetRandStr ¶
func LowercaseFirst ¶
func PathExists ¶
func RemoveFile ¶
func UppercaseFirst ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.