Documentation ¶
Index ¶
- Constants
- Variables
- 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 GenMarkdown2Html(source string) string
- func ID2Province(id string) string
- func Markdown2Html(content string) (str string)
- func MarkdownBasic2Html(content string) (str string)
- func ParseIDCard(idcard string) (string, string)
- func ParseTpl(tplname, tpl string, mmap map[string]string) string
- func ReplaceAll(oldStr, pattern, newStr string) string
- func SpliteStrByNet(version string) []string
- func SubStringHTML(param string, length int, end 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 ¶
View Source
const (
//http://maruku.rubyforge.org/maruku.html#toc-generation
TOC_MARKUP = "{:toc}"
)
Variables ¶
View Source
var (
TOC_TITLE = "<h1>Index:</h1>"
)
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 GenMarkdown2Html ¶
func Markdown2Html ¶
func MarkdownBasic2Html ¶
func ParseIDCard ¶
ParseIDCard parse province and year by idcard
func SpliteStrByNet ¶
SpliteStrByNet 按“.”分割版本号为小版本号的字符串数组
func SubStringHTML ¶
SubStringHTML 获取摘要, HTML
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.