Documentation ¶
Index ¶
- func Base64Decode(s string) string
- func Base64Encode(s string) string
- func BasePath() string
- func CompareVersion(ver, cVer string) int
- func CurrentPath() string
- func FileExt(file string) string
- func FmtPageParams(pageNum, pageSize int64) (int64, int64)
- func GetLocalIP() (ipv4 string, err error)
- func GetRequestIp(r *http.Request) string
- func InStringArray(s string, arr []string) bool
- func IsExistPath(path string) bool
- func Md5Sum(s string) string
- func NewMd5Password(password string, secret string) string
- func NewRequestId() string
- func RandCode(l int, chars []string) string
- func RandFigureCode(l int) string
- func RandLetterCode(l int) string
- func RandLetterFigureCode(l int) 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 Base64Decode ¶ added in v1.1.10
func Base64Encode ¶ added in v1.1.10
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 InStringArray ¶ added in v1.1.9
func NewMd5Password ¶ added in v1.1.7
func NewRequestId ¶
func NewRequestId() string
func RandFigureCode ¶ added in v1.1.8
func RandLetterCode ¶ added in v1.1.8
func RandLetterFigureCode ¶ added in v1.1.8
func ReadYamlFile ¶ added in v1.1.7
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.