Documentation ¶
Index ¶
- func CompareArrStrVers(ver1, ver2 []string) int
- func CompareByBytes(ver1, ver2 []byte) int
- func CompareLittleVer(ver1, ver2 string) int
- func CompareVersion(ver1, ver2 string) (int, error)
- func ConstructString(strings ...string) string
- func ID2Province(id string) string
- func ParseIDCard(idcard string) (string, string)
- func ParseTpl(tplname, tpl string, mmap map[string]string) string
- func SpliteStrByNet(version string) []string
- func Substr(str string, start, length int) string
- func Substring(str string, start int) string
- func SubstringByte(str string, start int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareArrStrVers ¶
CompareArrStrVers CompareArrStrVers
func CompareByBytes ¶
CompareByBytes CompareByBytes 按byte位进行比较小版本号
func CompareLittleVer ¶
CompareLittleVer CompareLittleVer 比较小版本号字符串
func CompareVersion ¶
CompareVersion CompareVersion return big:1 smaill:2 equ:0 error:-1
func ConstructString ¶
ConstructString construct string
func ParseIDCard ¶
ParseIDCard parse province and year by idcard
func SpliteStrByNet ¶
SpliteStrByNet 按“.”分割版本号为小版本号的字符串数组
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.