Documentation ¶
Index ¶
- Variables
- func Exists(path string) bool
- func GetRandDigit(n int) string
- func Json2Map(jsonstr []byte) (s map[string]string, err error)
- func MD5(data string) string
- func MD5Encrypt16(data string) string
- func NewUploadRequest(linkUrl string, params map[string]string, name, path string) (*http.Request, error)
- func PageCount(count, pagesize int) int
- func RandIntNum(min, max int64) int64
- func ReadFile(path string) ([]byte, error)
- func SetField(obj interface{}, name string, value interface{}) error
- func SortMapByKey2Str(m map[string]interface{}) string
- func StartIndex(page, pagesize int) int
- func StrListToString(strList []string) (str string)
- func Struct2Map(obj interface{}) map[string]interface{}
- func SubFloatToFloat(f float64, m int) float64
- func SubFloatToString(f float64, m int) string
- func ToString(v interface{}) string
- func UrlEncode(s string) string
- func Version2Flt(appversion string) (version float64)
- func VersionToInt(version string) int
Constants ¶
This section is empty.
Variables ¶
随机数种子
Functions ¶
func MD5Encrypt16 ¶
func NewUploadRequest ¶
func NewUploadRequest(linkUrl string, params map[string]string, name, path string) (*http.Request, error)
新建上传请求
func RandIntNum ¶
func StartIndex ¶
func StrListToString ¶
将字符串数组转化为逗号分割的字符串形式 ["str1","str2","str3"] >>> "str1,str2,str3"
func Struct2Map ¶
func Struct2Map(obj interface{}) map[string]interface{}
func Version2Flt ¶
func VersionToInt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.