Documentation
¶
Index ¶
- func Base64D(body string) string
- func Base64E(body string) string
- func ComputeHmac256(message string, secret string) string
- func CopyFF(src io.Reader, dst io.Writer) error
- func CopyFS(src io.Reader, dst string) error
- func CurDir() string
- func DivideStringList(files []string, num int) (map[int][]string, error)
- func FileExist(filename string) bool
- func GetBinaryCurrentPath() (string, error)
- func GetCurrentPath() (string, error)
- func GetFileSuffix(f string) string
- func GetFilenameInfo(filepath string) (os.FileInfo, error)
- func HasFile(s string) bool
- func IS(i int) string
- func InArray(sa []string, a string) bool
- func Input(say, defaults string) string
- func IsDir(filepath string) bool
- func IsFile(filepath string) bool
- func JsonBack(s []byte) ([]byte, error)
- func ListDir(dirPth string, suffix string) (files []string, err error)
- func ListDirOnlyName(dirPth string, suffix string) (files []string, err error)
- func MakeDir(fileDir string) error
- func MakeDirByFile(filepath string) error
- func Md5(str string) string
- func Md5FS(src io.Reader) string
- func ReadFromFile(filepath string) ([]byte, error)
- func Rename(oldFilename string, newFilename string) error
- func SI(s string) (i int, e error)
- func SaveToFile(filePath string, content []byte) error
- func Second(times int) time.Duration
- func SizeofDir(dirPth string) int
- func Sleep(waitTime int)
- func StrToMd5(s string) string
- func Substr(str string, start, length int) string
- func ToLower(s string) string
- func TodayString(level int) string
- func UrlD(s string) string
- func UrlE(s string) string
- func ValidBackFileName(filename string) string
- func ValidFileName(filename string) string
- func WalkDir(dirPth, suffix string) (files []string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeHmac256 ¶
ComputeHmac256 HMAC with the SHA256
func GetBinaryCurrentPath ¶
func GetCurrentPath ¶
func GetFileSuffix ¶
func ListDirOnlyName ¶
func MakeDirByFile ¶
func ReadFromFile ¶ added in v1.0.9
func SaveToFile ¶
func TodayString ¶
func ValidBackFileName ¶
func ValidFileName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.