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 GoId() string
- func IFF[T any](yes bool, a, b T) T
- func IFN[T any](yes bool, a, b func() T) T
- func LikeContains(obj interface{}, target interface{}) bool
- 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, target 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 Sha256ToLower(input string) string
- func Sha256ToUpper(input string) string
- 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 LikeContains ¶ added in v1.9.20
func LikeContains(obj interface{}, target interface{}) bool
LikeContains 函数,添加了通配符 ** 支持
func LowercaseFirst ¶
func PathExists ¶
func RemoveFile ¶
func Sha256ToLower ¶ added in v1.9.15
Sha256ToLower 方法接收一个字符串输入,生成其对应的 SHA-256 哈希值,并以十六进制字符串形式返回
func Sha256ToUpper ¶ added in v1.9.15
Sha256ToUpper 方法接收一个字符串输入,生成其对应的 SHA-256 哈希值,并以十六进制字符串形式返回
func UppercaseFirst ¶
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.