Documentation ¶
Index ¶
- func Bool(data bool) *bool
- func Byte(data byte) *byte
- func CamelToSnake(camel string) string
- func CentToYuan(cent int64) float64
- func CheckFileMD5(file string, tagMd5Value string) (bool, error)
- func ContainInt(src []int, tag int) bool
- func ContainString(src []string, tag string) bool
- func ConvertPointer(t reflect.Type) reflect.Type
- func CreateNewFile(path string) (*os.File, error)
- func FileExist(filePath string) (bool, error)
- func FileName(file string) string
- func Float64(data float64) *float64
- func GET(url string, pathParams, queryParams ReqParams) ([]byte, error)
- func GetConfigurationItem(prefix, item string) string
- func GetFileName(file string) string
- func HexToRGBA(hexColor string) (*color.RGBA, error)
- func Int(data int) *int
- func Int16(data int16) *int16
- func Int32(data int32) *int32
- func Int64(data int64) *int64
- func Int8(data int8) *int8
- func IntCentToYuan(cent int) float64
- func IsFunc(i interface{}) bool
- func IsNilPointer(i interface{}) bool
- func NoPanic(fn func()) (err error)
- func POST(uri string, body Body) (*gjson.Result, error)
- func ParseConfig(conf string) ([]string, error)
- func PasswordEncode(password string) string
- func PathExist(path string) (bool, error)
- func RegexpMatchPhone(phone string) bool
- func RemoveTypePtr(t reflect.Type) reflect.Type
- func RemoveValuePtr(v reflect.Value) reflect.Value
- func ReplaceFileDir(srcFile, replaceDir string) string
- func SnakeToCamel(snake string) string
- func String(data string) *string
- func StringCentToYuan(cent string) float64
- func StringYuanToCent(yuan string) int64
- func StructToMap(in interface{}, omits ...string) (map[string]interface{}, error)
- func UUID() string
- func Uint(data uint) *uint
- func Uint16(data uint16) *uint16
- func Uint32(data uint32) *uint32
- func Uint64(data uint64) *uint64
- func Uint8(data uint8) *uint8
- func UniqueId(min, max int64) int64
- func Verify(plaintext, encrypt string) bool
- func YuanToCent(yuan float64) int64
- type Body
- type ReqParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelToSnake ¶
func CheckFileMD5 ¶
CheckFileMD5 检查文件的 md5 值
func ContainInt ¶
func ContainString ¶
func CreateNewFile ¶
CreateNewFile 创建新的文件 文件如果存在的话 会删除旧文件创建新文件并返回
func GetConfigurationItem ¶
func GetFileName ¶
func ParseConfig ¶
func PasswordEncode ¶
func ReplaceFileDir ¶
func SnakeToCamel ¶
func StringCentToYuan ¶
StringCentToYuan 字符串类型的人民币分单位值转换为元单位的值
func StringYuanToCent ¶
StringYuanToCent 字符串类型的人民币元单位的值转换为分单位的值
func StructToMap ¶
StructToMap 将一个结构体转换为 map[string]interface{}
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.