Documentation ¶
Index ¶
- func BinaryToHex(bin string) (hex string, err error)
- func BinaryToString(bin string) (string, error)
- func ClientIP(r *http.Request) string
- func ClientPublicIP(r *http.Request) string
- func FillWidth(str string, width int) string
- func HasLocalIP(ip net.IP) bool
- func HasLocalIPAddr(ip string) bool
- func HexToBinary(hex string) (bin string, err error)
- func HexToString(str string) (string, error)
- func IP2Long(ip net.IP) (uint, error)
- func IPString2Long(ip string) (uint, error)
- func IsZero(v interface{}) bool
- func Long2IP(i uint) (net.IP, error)
- func Long2IPString(i uint) (string, error)
- func NewTimeCounter() timeCounter
- func RemoteIP(r *http.Request) string
- func ServerIp() (ip string)
- func SetFieldValue(binding interface{}, name string, value interface{}) error
- func StringToBinary(str string) (string, error)
- func StringToHex(str string) (bin string)
- func StructToStruct(binding interface{}, value interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetFieldValue ¶
为结构体的指定属性赋值
func StructToStruct ¶
func StructToStruct(binding interface{}, value interface{}) error
将 结构体 value 的值赋值给 结构体 binding
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.