Documentation
¶
Index ¶
- Variables
- func AesDecrypt(data []byte, key []byte) ([]byte, error)
- func AesDecryptBase64(data string) (string, error)
- func AesDecryptBase64WithKey(data string, key []byte) (string, error)
- func AesDecryptRawBase64(data string) (string, error)
- func AesDecryptRawBase64WithKey(data string, key []byte) (string, error)
- func AesEncrypt(origData []byte, key []byte) ([]byte, error)
- func AesEncryptBase64(data string) (string, error)
- func AesEncryptBase64WithKey(data string, key []byte) (string, error)
- func AesEncryptRawBase64(data string) (string, error)
- func AesEncryptRawBase64WithKey(data string, key []byte) (string, error)
- func Base64Decoding(str string) (string, error)
- func Brotil(data []byte) ([]byte, error)
- func ContainTag(tag reflect.StructTag, tagName string) bool
- func DeByte(bytes []byte, v interface{}) (err error)
- func DoTagFunc(v interface{}, fnObjs []FnObj) (err error)
- func ExecTemplate(path string, dataMap map[string]interface{}) (res []byte, err error)
- func FileExist(path string) bool
- func FileModTime(path string) (time.Time, error)
- func FileSize(path string) (int64, error)
- func GenerateId(prefix string) string
- func Gunzip(data []byte) ([]byte, error)
- func Gzip(data []byte) ([]byte, error)
- func LoadConfig(filename string, v interface{}) error
- func MD5(str string) string
- func Marshal(v interface{}) (bytes []byte, err error)
- func MatchReg(s, reg string) bool
- func Mkdir(path string, perm os.FileMode) (e error)
- func RandInt(v1, v2 int) int
- func ReflectCommonGet(structField reflect.StructField, vValue reflect.Value) (values []string)
- func ReflectCommonSet(structField reflect.StructField, vValue reflect.Value, values []string) (err error)
- func RegFind(s, reg string) []string
- func RegReplace(str string, reg string, newStr string) string
- func SetDefaultValueIfNil(structField reflect.StructField, vValue reflect.Value, data interface{}) (err error)
- func StringSliceContains(slice []string, str string) bool
- func StringSliceLike(slice []string, str string) bool
- func ToBase64(str string) string
- func ToByte(v interface{}) (bytes []byte, err error)
- func ToCamel(str string) (camel string)
- func ToCamelByte(src []byte) []byte
- func ToFloat64(s string) float64
- func ToInt(s string) int
- func ToJson(v interface{}) string
- func ToString(value interface{}) string
- func ToUint64(s string) uint64
- func UUID() string
- func UnBrotil(data []byte) ([]byte, error)
- func Unmarshal(bytes []byte, v interface{}) (err error)
- func UnmarshalFileYaml(filename string, v interface{}) error
- type FnObj
Constants ¶
This section is empty.
Variables ¶
View Source
var Base64Encoding = ToBase64
View Source
var DefaultAesKey = []byte("01234567890123456789012345678901")
Functions ¶
func AesDecryptBase64 ¶
AesDecryptBase64 AesDecrypt + base64
func AesDecryptBase64WithKey ¶
func AesDecryptRawBase64 ¶
AesDecryptRawBase64 AesDecrypt + base64
func AesEncryptBase64 ¶
AesEncryptBase64 AesEncrypt + base64
func AesEncryptBase64WithKey ¶
func AesEncryptRawBase64 ¶
AesEncryptRawBase64 AesEncrypt + base64
func Base64Decoding ¶
func ExecTemplate ¶
func GenerateId ¶
func LoadConfig ¶
func ReflectCommonGet ¶
func ReflectCommonGet(structField reflect.StructField, vValue reflect.Value) (values []string)
func ReflectCommonSet ¶
func SetDefaultValueIfNil ¶
func SetDefaultValueIfNil(structField reflect.StructField, vValue reflect.Value, data interface{}) (err error)
func StringSliceContains ¶
func StringSliceLike ¶
func ToCamelByte ¶
ToCamelByte converts snake_case to camelCase with high performance using bytes
func UnmarshalFileYaml ¶
Types ¶
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
package jsonpath is a template engine using jsonpath syntax, which can be seen at http://goessner.net/articles/JsonPath/.
|
package jsonpath is a template engine using jsonpath syntax, which can be seen at http://goessner.net/articles/JsonPath/. |
|
forked/golang/template
This package is copied from Go library text/template.
|
This package is copied from Go library text/template. |
Click to show internal directories.
Click to hide internal directories.