Documentation ¶
Index ¶
- Variables
- func ConvertPng(old, new string) bool
- func CreateToken() (string, error)
- func GetAccessToken() (string, error)
- func GetExternalIP() (net.IP, error)
- func GetInterIp() (string, error)
- func GetListenAddr(a string) (string, error)
- func GetServAddr(a net.Addr) (string, error)
- func InTool(str string) string
- func Int64ToStr(num int64) string
- func MD5Sum(filePath string) ([]byte, error)
- func MakeSig(timestamp, nonce string) string
- func NewMaterial(wxCtx *wechatCtx.Context, path string)
- func ParseToken(tokenStr string) (jwt.MapClaims, error)
- func ParseXmlStr1(str string) []string
- func ParseXmlStr2(str string) [][]string
- func PathExists(path string) (bool, error)
- func TinyProto(strs ...string) bool
- func UseTool(userName string) string
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorNotFound = errors.New("not found") ErrorNil = errors.New("is nil") )
View Source
var GinDefaultLog io.Writer
View Source
var Json = jsoniter.ConfigCompatibleWithStandardLibrary
View Source
var ToolDesc = map[string]string{
"TinyProto": "无损压缩png图片",
}
View Source
var Tools = map[string]func(str ...string) bool{ "TinyProto": TinyProto, }
View Source
var UserTool map[string]string
Functions ¶
func ConvertPng ¶
func GetInterIp ¶
func GetListenAddr ¶
func Int64ToStr ¶
func NewMaterial ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.