Documentation ¶
Index ¶
- Constants
- func AppPath() string
- func Contains(str string, substr string) bool
- func Equals(str1 string, str2 string) bool
- func FloatToInt(v float64) int
- func InArray(value string, arr []string) bool
- func IntToString(v int) string
- func Ip(str string) bool
- func IpAddr(str string) bool
- func IpV4(str string) bool
- func IpV4Addr(str string) bool
- func IpV6(str string) bool
- func IpV6Addr(str string) bool
- func IsDir(str string) bool
- func IsEmail(email string) bool
- func IsFile(str string) bool
- func IsMobile(mobile string) bool
- func IsNumeric(num int) bool
- func IsURL(url string) bool
- func IsUnique(arr []rune) bool
- func JsonToMap(jsonStr string) map[string]interface{}
- func MapToJson(obj map[string]interface{}) string
- func Max(num int, max int) bool
- func Md5(str string) string
- func Min(num int, max int) bool
- func NotEqual(str1 string, str2 string) bool
- func OneOf(value interface{}, arr []rune) bool
- func Required(str string) bool
- func StringToInt(str string) int
- func StringToRuneArr(str string, lens int) []rune
- func StructToMap(obj interface{}) map[string]interface{}
- func TcpAddr(str string) bool
- func TcpV4Addr(str string) bool
- func TcpV6Addr(str string) bool
- func TypeOf(v interface{}) string
- func UdpAddr(str string) bool
- func UdpV4Addr(str string) bool
- func UdpV6Addr(str string) bool
- type Time
Constants ¶
View Source
const (
TimeFormat = "2006-01-02 15:04:05"
)
Variables ¶
This section is empty.
Functions ¶
func StructToMap ¶
func StructToMap(obj interface{}) map[string]interface{}
*
- struct / interface to map
Types ¶
Click to show internal directories.
Click to hide internal directories.