Documentation
¶
Index ¶
- func Addslashes(v string) string
- func ArrayDiff(array1 []string, array2 []string) []string
- func Byte2String(bytes int64, unit string, returnUnit bool) string
- func CheckFileName(file []string) (bool, string)
- func DataTimeFormat(array []interface{}, fields string, format string) []interface{}
- func EncodeMD5(s string) string
- func FileAppend(logFile string, data string)
- func GetIPAdress(r *http.Request) string
- func GetKey(array map[string]interface{}) []string
- func GetMapValueByKey(data interface{}, key string) string
- func IsIP(ip string) (b bool)
- func IsMysqlName(name string) bool
- func IsPasswd(name string) bool
- func IsValid(name string) bool
- func JsonToArr(json string) []interface{}
- func LcFirst(str string) string
- func MkKey(array []interface{}, key string, keyOnly bool) map[string]interface{}
- func MkKeyValue(array []interface{}, key string, value string) map[string]interface{}
- func MkMaxKeyValue(array []interface{}, key string, value string, maxKey string) map[string]interface{}
- func ParseFormCollection(r *http.Request, typeName string, mustHave string) []map[string]string
- func ToInt(value interface{}) int
- func ToInt64(value interface{}) int64
- func ToString(arg interface{}) string
- func UcFirst(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Addslashes ¶
func DataTimeFormat ¶
* * array数据 格式化子元素的时间 * fields - 需要格式化为时间的字段名,多个字段用逗号隔开 * format - 时间格式
func FileAppend ¶
func GetMapValueByKey ¶
适用于无法判断data为map类型的结构
func IsMysqlName ¶
func MkKeyValue ¶
func MkMaxKeyValue ¶
func ParseFormCollection ¶
处理http提交的二维数组
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.