Documentation
¶
Index ¶
- Variables
- func Command(nameArgs ...string) (string, error)
- func Contains(s string, substrs ...string) bool
- func CopyFile(inFilePath, outFilePath string) error
- func Decrypt(data string) (string, error)
- func Difference[T any](s1, s2 []T, equal func(t1, t2 T) bool) ([]T, []T)
- func Digest(data string) string
- func Encrypt(data string) (string, error)
- func Exist(name string) bool
- func GetIp() (string, error)
- func GetPort(min, max int) int
- func Glob(patterns ...string) []string
- func HasPrefix(s string, prefixs ...string) bool
- func HasSuffix(s string, suffixs ...string) bool
- func HmacSha256(data string, secret string) string
- func InsertAfter(s string, findinserts ...string) string
- func InsertBefore(s string, findinserts ...string) string
- func IntId() int64
- func MakeDir(names ...string) error
- func Md5(data string) string
- func ReadMetadata(filePath string) (map[string]any, error)
- func Remove(names ...string) error
- func RenameFile(inFilePath, outFilePath string) error
- func Replace(s string, oldnews ...string) string
- func Split(s string, seps ...rune) []string
- func TakeStream(outs map[string]map[string]any, in string, inArgs ...map[string]any) error
- func TimeId() string
- func Trim(s string, cutsets ...string) string
- func UnzipFile(inFilePath string, outFilePath ...string) error
- func WriteMetadata(inFilePath, outFilePath string, data map[string]any) error
- func ZipFile(inFilePath string, outFilePath ...string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Key = []byte("0123456789ABCDEFFEDCBA9876543210")
)
Functions ¶
func Difference ¶ added in v1.0.20
差异
func ReadMetadata ¶ added in v1.0.20
读取元数据
func TakeStream ¶
抓取流
func WriteMetadata ¶ added in v1.0.20
写入元数据
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.