Documentation ¶
Index ¶
- Constants
- Variables
- func AESCBCDecrypt(cipherData, key, iv []byte) ([]byte, error)
- func AESCBCEncrypt(rawData, key, iv []byte) ([]byte, error)
- func AESECBDecrypt(buf, key []byte) ([]byte, error)
- func AESECBEncrypt(data, key []byte) ([]byte, error)
- func AsyncFunc(fn func())
- func AsyncFuncGroup(fns ...func())
- func Base64Decode(str string) []byte
- func Base64Encode(buf []byte) string
- func BigIntAdd(num1 string, num2 string) string
- func BigIntCmp(num1 string, num2 string) int
- func BigIntDiv(num1 string, num2 string) string
- func BigIntMod(num1 string, num2 string) string
- func BigIntMul(num1 string, num2 string) string
- func BigIntReduce(num1 string, num2 string) string
- func Camel2Case(str string) string
- func CaptchaGet(width, height int) map[string]string
- func CaptchaVerify(id, code string) bool
- func Case2Camel(str string) string
- func Code2Id(code string) (int64, error)
- func DIR() string
- func Date2Ts(date string) int64
- func DateTime2Ts(dateTime string) int64
- func FILE() string
- func GBK2UTF8(s string) string
- func HMacMd5(buf, key []byte) string
- func HMacSha1(buf, key []byte) string
- func HMacSha256(buf, key []byte) string
- func Id2Code(id int64) string
- func LINE() int
- func MD5(buf []byte) string
- func NewIdCode(key string) *idCode
- func NextDate(d int) string
- func NonceStr() string
- func NonceStr8() string
- func PProf(addr string, prefixOptions ...string)
- func PinYin(origin string) (string, error)
- func Recovery()
- func SHA1(buf []byte) string
- func SHA256(buf, key []byte) string
- func SHAWithRSA(key, data []byte) (string, error)
- func SessionId() string
- func Split(s string, rs ...rune) []string
- func Today() string
- func Trace(skip int, trimPaths ...string) (arr []string)
- func Ts2Date(ts int64) string
- func Ts2DateTime(ts int64) string
- func UTF82GBK(s string) string
- func WriteToFile(filename string, b []byte) error
- type Byte
- type FileLock
- type Mode
- type Params
- func (p Params) Array() (ps []Params)
- func (p Params) ArrayData() []interface{}
- func (p Params) Bool() bool
- func (p Params) Data() interface{}
- func (p Params) Float32() float32
- func (p Params) Float64() float64
- func (p Params) Get(key string) Params
- func (p Params) Int() int
- func (p Params) Int32() int32
- func (p Params) Int64() int64
- func (p Params) JSON() []byte
- func (p Params) Map() (rst map[string]Params)
- func (p Params) MapData() map[string]interface{}
- func (p Params) Set(key string, val interface{}) Params
- func (p Params) String() string
- type StringMap
Constants ¶
View Source
const (
EL = "\n"
)
Variables ¶
View Source
var (
ErrInitialize = errors.New("not yet initialized")
)
Functions ¶
func AESCBCDecrypt ¶
func AESCBCEncrypt ¶
func AESECBDecrypt ¶
func AESECBEncrypt ¶
func Base64Decode ¶
func Base64Encode ¶
func DateTime2Ts ¶
func HMacSha256 ¶
func SHAWithRSA ¶
func Ts2DateTime ¶
Types ¶
type FileLock ¶ added in v1.0.45
type FileLock struct { Filename string // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.