Documentation
¶
Index ¶
- Variables
- func NewSonyflake() *sonyflake.Sonyflake
- type GoString
- func (this *GoString) AntiSpamBot(email string) string
- func (this *GoString) AutoUTF8(html string) (string, error)
- func (this *GoString) DeepProcessingRegex(regex string) string
- func (this *GoString) FirstLetter(text, sep string) string
- func (this *GoString) GBKToUTF8(text []byte) ([]byte, error)
- func (this *GoString) GetLinks(data string) ([]string, error)
- func (this *GoString) GetRandomString(n int) string
- func (this *GoString) HtmlAttributes(data, ele, attr string) ([]string, error)
- func (this *GoString) HtmlBaseUrl(html string) string
- func (this *GoString) HtmlCharset(html string) string
- func (this *GoString) HumanBytes(size int64) string
- func (this *GoString) InSlice(value string, values []string) bool
- func (this *GoString) IsExactMatch(regex, data string) bool
- func (this *GoString) IsMatch(regex, data string) bool
- func (this *GoString) LeftSlash(str string) string
- func (this *GoString) MD5(str string) string
- func (this *GoString) Pinyin(text, sep string) string
- func (this *GoString) Random(n int) string
- func (this *GoString) RegexpAllMatch(regex, data string) (matches []string)
- func (this *GoString) RegexpOneMatch(regex, data string) string
- func (this *GoString) RemoveDuplicate(slis *[]string)
- func (this *GoString) RemoveSlice(values []string, value string) []string
- func (this *GoString) RightSlash(str string) string
- func (this *GoString) ShortUUID() string
- func (this *GoString) SliceContains(ss []string, s string) bool
- func (this *GoString) SplitUpper(data string) []string
- func (this *GoString) StripHTML(html string) string
- func (this *GoString) StripHTMLTags(html string) string
- func (this *GoString) Sub(html, begin, end string) string
- func (this *GoString) ToBool(value string) (bool, error)
- func (this *GoString) ToInt(value string) (int, error)
- func (this *GoString) ToInt64(value string) (int64, error)
- func (this *GoString) ToUint(value string) (uint, error)
- func (this *GoString) ToUint64(value string) (uint64, error)
- func (this *GoString) TrimLeftSlash(str string) string
- func (this *GoString) TrimRightSlash(str string) string
- func (this *GoString) TrimSlash(str string) string
- func (this *GoString) UTF8ToGBK(text []byte) ([]byte, error)
- func (this *GoString) UUID() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Helper = &GoString{}
Functions ¶
Types ¶
type GoString ¶
type GoString struct{}
func (*GoString) DeepProcessingRegex ¶
{数字} => ^[0-9]+$ [数字] => (^[0-9]+$) {内容} => .*? [内容] => (.*?)
func (*GoString) HtmlAttributes ¶
func (*GoString) HtmlBaseUrl ¶
获取HTML中base标签指定的链接地址
func (*GoString) RegexpAllMatch ¶
所有匹配
func (*GoString) RegexpOneMatch ¶
一个匹配
func (*GoString) RemoveSlice ¶
func (*GoString) SliceContains ¶
区分大小写
Click to show internal directories.
Click to hide internal directories.