Documentation ¶
Index ¶
- func CalMD5(value string) string
- func CopyFile(src string, dst string) int
- func FileMd5(path string) string
- func Fingerprint(text string) string
- func GetExecDirPath() (string, error)
- func IsDir(path string) bool
- func IsPathExist(path string) bool
- func MakeHMac(token string, body []byte) string
- func MakeParentDir(path string) (bool, error)
- func MakeSign(appid, appSecret string, values url.Values) string
- func MoveFile(src string, dst string) int
- func NewToken(appname, uniqueID string) string
- func NewUUID(appname, uniqueID string) string
- func PathRelative2Bin(relative string) (string, error)
- func RemoveFile(path string) int
- func TernaryString(condition bool, s string, f string) string
- type ISafeRand
- type IntHeap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fingerprint ¶
func GetExecDirPath ¶
func IsPathExist ¶
IsPathExist check whether the path is exist or not
func MakeParentDir ¶
MakeParentDir 生成指定路径的上级目录
如: /foo/bar/baz.js 会确保 /foo/bar 存在 /foo/bar/baz 会确保 /foo/bar 存在 /foo/bar/baz/ 会确保 /foo/bar/baz 存在
func PathRelative2Bin ¶
func RemoveFile ¶
Types ¶
type ISafeRand ¶
type ISafeRand interface { Int63() int64 Uint32() uint32 Uint64() uint64 Int31() int32 Int() int Int63n(n int64) int64 Int31n(n int32) int32 Intn(n int) int Float64() float64 NormFloat64() float64 Float32() float32 Perm(n int) []int }
func NewSafeRand ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.