Documentation ¶
Index ¶
- Constants
- func AssertMarshal(v interface{}) string
- func Base64Decode(str string) (string, error)
- func Base64Encode(str string) string
- func ConvertByte2String(byte []byte, charset Charset) string
- func Des3Decrypt(key3Des []byte, sec string) (string, error)
- func Des3Encrypt(key3Des []byte, source string) (string, error)
- func DesDecrypt(crypted, key []byte) ([]byte, error)
- func DesEncrypt(origData, key []byte) ([]byte, error)
- func ExecCmd(dir string, str string) (string, error)
- func ExecCmd2(ctx context.Context, cmd string) (string, error)
- func FunFuncName() string
- func GbkToUtf8(s []byte) ([]byte, error)
- func GetBinDir() string
- func GetDateByN(n int) int64
- func GetExeName() string
- func GetFieldName(t reflect.Type) (map[string]string, error)
- func GetHmac(key string, data string) string
- func GetHmacSha256(key string, data string) string
- func GetIndexByWeigth(data []int) int
- func GetLocalIP() string
- func GetMd5(data string) string
- func GetMysqlParam(n int) string
- func GetPosInfo() (string, int)
- func GetPosInfoSplit() string
- func GetPosInfoStr() string
- func GetSecondByDay00() int64
- func GetSecondFromDay() int64
- func GetSecondFromHour() int64
- func GetSecondFromMonth() int64
- func GetSecondFromWeek() int64
- func GetSha1(data string) string
- func GetSignal() int
- func GetTDayByUnixTime(nowUnix int64) int64
- func IsGBK(data []byte) bool
- func IsUtf8(data []byte) bool
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func PathExists(path string) bool
- func Profiling(msg string) func()
- func RandMN(min int, max int) int
- func RsaDecrypt(privateKey []byte, origData string) ([]byte, error)
- func RsaEncrypt(publicKey []byte, data []byte) (string, error)
- func RunFuncName() string
- func TripleDesDecrypt(crypted, key []byte) ([]byte, error)
- func TripleDesEncrypt(origData, key []byte) ([]byte, error)
- func UrlDecode(str string) (string, error)
- func UrlEncode(str string) string
- func Utf8ToGbk(s []byte) ([]byte, error)
- func ZeroPadding(ciphertext []byte, blockSize int) []byte
- func ZeroUnPadding(origData []byte) []byte
- type Charset
- type TplJson
Constants ¶
View Source
const ( UTF8 = Charset("UTF-8") GB18030 = Charset("GB18030") GBK = Charset("GBK") )
Variables ¶
This section is empty.
Functions ¶
func AssertMarshal ¶
func AssertMarshal(v interface{}) string
func ConvertByte2String ¶
func DesDecrypt ¶
func DesEncrypt ¶
func FunFuncName ¶
func FunFuncName() string
func GetExeName ¶ added in v1.1.1
func GetExeName() string
func GetHmacSha256 ¶
func GetIndexByWeigth ¶
func GetLocalIP ¶ added in v1.1.1
func GetLocalIP() string
func GetMysqlParam ¶
func GetPosInfo ¶
func GetPosInfoSplit ¶ added in v1.1.1
func GetPosInfoSplit() string
func GetPosInfoStr ¶
func GetPosInfoStr() string
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func RunFuncName ¶
func RunFuncName() string
func ZeroPadding ¶
func ZeroUnPadding ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.