Documentation
¶
Index ¶
- Variables
- func Base34Decode(bs []byte) uint64
- func Base34DecodeString(str string) uint64
- func Base34Encode(id uint64) []byte
- func Base34EncodeToString(id uint64) string
- func Base62Decode(token string) int64
- func Base62Encode(number int64) string
- func Base62EncodeMin6Max11(number int64) string
- func BytesToString(b []byte) string
- func CheckAndCreate(path string) error
- func CheckIsSameIP(addr string, selfIPS ...string) string
- func CheckPathExists(path string) bool
- func CreateCaptcha() (id, data string)
- func CreateCaptchaWithWH(width, height int64) (id, data string)
- func CreatePath(path string) error
- func DesDecrypt(crypt, key []byte) ([]byte, error)
- func DesEncrypt(origData, key []byte) ([]byte, error)
- func EncodeNumString(src string) string
- func GetDirFromPath(path string) string
- func GetFileNameFromPath(path string) string
- func I64ToStr(i int64) string
- func InitRedisCaptchaStore(client redis.Cmdable)
- func MD5Bytes(bs []byte) string
- func MD5String(str string) string
- func MD5StringUpper(str string) string
- func NewLogFileName(serverName string, addr string) string
- func PKCS5Padding(cipherText []byte, blockSize int) []byte
- func PKCS5UNPadding(origData []byte) []byte
- func Recover(panicPrint func(e interface{}))
- func RecoverWithFunc(panicPrint func(e interface{}), f func())
- func SafeGO(errF func(interface{}), f func())
- func StringToBytes(s string) []byte
- func StringToBytesNotNil(s string) []byte
- func TrimLeftRight(str string) string
- func TripleEcbDesDecrypt(crypt, key []byte) ([]byte, error)
- func TripleEcbDesEncrypt(origData, key []byte) ([]byte, error)
- func VerifyCaptcha(idKey, verifyValue string) bool
- func WalkFiles(fileDir string, suffix ...string) ([]string, error)
- type Duration
- type HTTPHeader
- type RedisStore
- type SpinLock
- type URLValues
- func (this_ *URLValues) Add(key string, value interface{}) *URLValues
- func (this_ *URLValues) Clone() *URLValues
- func (this_ *URLValues) Del(key string) *URLValues
- func (this_ *URLValues) Encode() string
- func (this_ *URLValues) Len() int64
- func (this_ *URLValues) Nil() bool
- func (this_ *URLValues) RawEncode() string
- func (this_ *URLValues) Set(key string, value interface{}) *URLValues
- func (this_ *URLValues) SortRawEncode() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Base62DecodeMin6Max11 = Base62Decode
Functions ¶
func Base34Decode ¶
func Base34DecodeString ¶
func Base34Encode ¶
func Base34EncodeToString ¶
func Base62EncodeMin6Max11 ¶
func BytesToString ¶
func CheckAndCreate ¶
CheckAndCreate 检查文件或者目录是否存在,不存在则创建 error==nil,创建成功,否则创建失败
func CheckIsSameIP ¶
func CheckPathExists ¶
CheckPathExists 检查文件目录是否存在 存在返回true,否则返回false
func CreateCaptcha ¶
func CreateCaptcha() (id, data string)
func CreateCaptchaWithWH ¶
func CreatePath ¶
CreatePath 递归创建文件 error==nil,创建成功,否则创建失败 内部调用 MkdirAll
func DesDecrypt ¶
func DesEncrypt ¶
func EncodeNumString ¶
func GetFileNameFromPath ¶
GetDirFromPath 从path获取当前文件名字 返回文件名字
func InitRedisCaptchaStore ¶
func MD5StringUpper ¶
func NewLogFileName ¶
func RecoverWithFunc ¶
func RecoverWithFunc(panicPrint func(e interface{}), f func())
func StringToBytes ¶
func StringToBytesNotNil ¶
func TrimLeftRight ¶
func TripleEcbDesDecrypt ¶
[golang ECB 3DES Decrypt]
func TripleEcbDesEncrypt ¶
[golang ECB 3DES Encrypt]
func VerifyCaptcha ¶
Types ¶
type Duration ¶
func (*Duration) FromString ¶
FromString 从字符串解析Duration,例如:5s,7m,9ms
func (*Duration) MarshalText ¶
func (*Duration) UnmarshalText ¶
type HTTPHeader ¶
func NewHTTPHeader ¶
func NewHTTPHeader() *HTTPHeader
func (*HTTPHeader) Add ¶
func (this_ *HTTPHeader) Add(key string, value interface{}) *HTTPHeader
func (*HTTPHeader) Del ¶
func (this_ *HTTPHeader) Del(key string) *HTTPHeader
func (*HTTPHeader) Len ¶
func (this_ *HTTPHeader) Len() int64
func (*HTTPHeader) Nil ¶
func (this_ *HTTPHeader) Nil() bool
func (*HTTPHeader) Set ¶
func (this_ *HTTPHeader) Set(key string, value interface{}) *HTTPHeader
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
func (*RedisStore) Set ¶
func (this_ *RedisStore) Set(id string, value string)
type URLValues ¶
func NewURLValues ¶
func NewURLValues() *URLValues
func (*URLValues) SortRawEncode ¶
Click to show internal directories.
Click to hide internal directories.