strings

package
v0.0.0-...-2083224 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

Variables

View Source
var (
	TOC_TITLE = "<h1>Index:</h1>"
)

Functions

func CompareArrStrVers

func CompareArrStrVers(ver1, ver2 []string) int

CompareArrStrVers CompareArrStrVers

func CompareByBytes

func CompareByBytes(ver1, ver2 []byte) int

CompareByBytes CompareByBytes 按byte位进行比较小版本号

func CompareLittleVer

func CompareLittleVer(ver1, ver2 string) int

CompareLittleVer CompareLittleVer 比较小版本号字符串

func CompareVersion

func CompareVersion(ver1, ver2 string) (int, error)

CompareVersion CompareVersion return big:1 smaill:2 equ:0 error:-1

func ConstructString

func ConstructString(strings ...string) string

ConstructString construct string

func GenMarkdown2Html

func GenMarkdown2Html(source string) string

func ID2Province

func ID2Province(id string) string

ID2Province id 2 chinese province

func Markdown2Html

func Markdown2Html(content string) (str string)

func MarkdownBasic2Html

func MarkdownBasic2Html(content string) (str string)

func ParseIDCard

func ParseIDCard(idcard string) (string, string)

ParseIDCard parse province and year by idcard

func ParseTpl

func ParseTpl(tplname, tpl string, mmap map[string]string) string

ParseTpl parse tpl

func ReplaceAll

func ReplaceAll(oldStr, pattern, newStr string) string

ReplaceAll replace string

func SpliteStrByNet

func SpliteStrByNet(version string) []string

SpliteStrByNet 按“.”分割版本号为小版本号的字符串数组

func SubStringHTML

func SubStringHTML(param string, length int, end string) string

SubStringHTML 获取摘要, HTML

func Substr

func Substr(str string, start, length int) string

Substr sub string

func Substring

func Substring(str string, start int) string

Substring sub string

func SubstringByte

func SubstringByte(str string, start int) string

SubstringByte 以byte来截取

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL