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, runDir string, cmd string) (string, error)
- func FunFuncName() string
- func FuncName() string
- func GbkToUtf8(s []byte) ([]byte, error)
- func GetBinDir() string
- func GetBinDirNew() string
- func GetBinName() string
- func GetBody(r *http.Request) []byte
- func GetDateByN(n int) int64
- 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 GetPidByWindows(name string) (rets []int)
- 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 MonitorStatus(interTime time.Duration)
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func PathExists(path string) bool
- func PidByBinName(binName string) []int
- 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 RunPprof(addr 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 GetBinDirNew ¶ added in v1.1.6
func GetBinDirNew() string
func GetBinName ¶ added in v1.1.4
func GetBinName() string
func GetHmacSha256 ¶
func GetIndexByWeigth ¶
func GetLocalIP ¶ added in v1.1.1
func GetLocalIP() string
func GetMysqlParam ¶
func GetPidByWindows ¶ added in v1.1.2
func GetPosInfo ¶
func GetPosInfoSplit ¶ added in v1.1.1
func GetPosInfoSplit() string
func GetPosInfoStr ¶
func GetPosInfoStr() string
func MonitorStatus ¶ added in v1.1.2
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func PidByBinName ¶ added in v1.1.2
func RunFuncName ¶
func RunFuncName() string
func ZeroPadding ¶
func ZeroUnPadding ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.