Documentation ¶
Index ¶
- func BasePath() string
- func CompareVersion(ver, cVer string) int
- func CurrentPath() string
- func FmtPageParams(pageNum, pageSize int64) (int64, int64)
- func GetLocalIP() (ipv4 string, err error)
- func GetRequestIp(r *http.Request) string
- func Md5Sum(s string) string
- func NewMd5Password(password string, secret string) string
- func NewRequestId() string
- func ReadYaml(data interface{}, yamlContent string) error
- func ReadYamlFile(data interface{}, configPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareVersion ¶ added in v1.1.7
比较版本,-1:小于,0:相等,1:大于 v1.1.1 compare v1.2.1
func FmtPageParams ¶ added in v1.1.7
func GetRequestIp ¶ added in v1.1.7
func NewMd5Password ¶ added in v1.1.7
func NewRequestId ¶
func NewRequestId() string
func ReadYamlFile ¶ added in v1.1.7
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.