Documentation ¶
Index ¶
- func AppendSalt(src, salt []byte) []byte
- func Csha512(d string, p []byte) (bool, error)
- func Equal(src []byte, dst []byte) bool
- func FromBase64(src string) ([]byte, error)
- func FromBits(data []byte, obj interface{}) error
- func FromHex(s string) ([]byte, error)
- func FromJson(j []byte, o interface{}) error
- func FromToml(f string, v interface{}) error
- func FuncName(f interface{}) string
- func Md5(p []byte) string
- func Mkdirs(d string, m os.FileMode) error
- func OpenRedisPool(host string, port, db int) *redis.Pool
- func ParseSalt(src []byte, length int) ([]byte, []byte)
- func PkgRoot(o interface{}) string
- func RandomBytes(size int) ([]byte, error)
- func Sha512(p []byte) string
- func Shell(cmd string, args ...string) error
- func Ssha512(p []byte, l int) (string, error)
- func ToBase64(src []byte) string
- func ToBits(obj interface{}) ([]byte, error)
- func ToHex(bs []byte) string
- func ToJson(o interface{}) ([]byte, error)
- func ToToml(f string, v interface{}) error
- func Uuid() string
- type Aes
- type Hmac
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendSalt ¶
func FromBase64 ¶
func RandomBytes ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.