Documentation
¶
Index ¶
- func CheckSign(token, sign, privateKey string) error
- func ClientIp(r *http.Request) string
- func Compress(path string, spath string) error
- func DelEmptySlice(arr []string) []string
- func GenSign(privateKey string) (string, string)
- func HttpGet(url string, ttl int) ([]byte, error)
- func Md5(s string) string
- func Mkdir(args ...string) error
- func RandInt(min int, max int) int
- func RunCmd(path, cmd string) error
- func SignPassword(password string, id int) string
- func UUID() (string, error)
- func Unzip(path, file string) error
- func UnzipToFolder(path, file, folder string) error
- type StringReverse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DelEmptySlice ¶
func SignPassword ¶
func UnzipToFolder ¶
Types ¶
type StringReverse ¶
type StringReverse []string
func (StringReverse) Len ¶
func (s StringReverse) Len() int
func (StringReverse) Less ¶
func (s StringReverse) Less(i, j int) bool
func (StringReverse) Swap ¶
func (s StringReverse) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.