Versions in this module Expand all Collapse all v1 v1.0.1 May 21, 2019 Changes in this version + func BinaryToDecimal(bit string) (num int) v1.0.0 May 17, 2019 Changes in this version + const DateLayout + const TimeLayout + const TimeLayout_2 + func AesCBCEncryptToBytes(jsonData []byte, secretKey string) ([]byte, error) + func AesCBCEncryptToString(jsonData []byte, secretKey string) (string, error) + func AesDecryptToBytes(data, secretKey string) ([]byte, error) + func AesDecryptToMap(data, secretKey string) (mapData map[string]interface{}, err error) + func AesDecryptToStruct(data, secretKey string, beanPtr interface{}) (err error) + func Float32ToString(floatNum float32, prec ...int) (floatStr string) + func Float64ToString(floatNum float64, prec ...int) (floatStr string) + func FormatDate(dateStr string) (formatDate string) + func FormatDateTime(timeStr string) (formatTime string) + func GetRandomNumber(l int) string + func GetRandomPureString(l int) string + func GetRandomString(l int) string + func Int2String(intNum int) (intStr string) + func Int642String(intNum int64) (int64Str string) + func PKCS5Padding(ciphertext []byte, blockSize int) []byte + func PKCS5UnPadding(origData []byte) []byte + func ParseDate(timeStr string) (date time.Time) + func ParseDateTime(timeStr string) (datetime time.Time) + func SaveFileToQiniuCloud(pathType, hostName string, formFile *multipart.FileHeader, limitSize int64) (urlPath string, err error) + func String2Float32(floatStr string) (floatNum float32) + func String2Float64(floatStr string) (floatNum float64) + func String2Int(intStr string) (intNum int) + func String2Int64(intStr string) (int64Num int64) + type Connection struct + SocketId string + func InitConnection(wsConn *websocket.Conn) (conn *Connection, err error) + func (this *Connection) Close() + func (this *Connection) ReadMessage() (data []byte, err error) + func (this *Connection) WriteJson(data interface{}) (err error) + func (this *Connection) WriteMessage(data []byte) (err error)