Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func CheckError(e error)
Types ¶
type GoroutinePool ¶
type GoroutinePool struct { TaskChannel chan Task AddTaskChannel chan Task // contains filtered or unexported fields }
type GoroutinePool
func NewGoroutinePool ¶
func NewGoroutinePool(wokerNum int) *GoroutinePool
func (*GoroutinePool) Run ¶
func (pool *GoroutinePool) Run()
type HttpClass ¶
http处理类
type StringsClass ¶
type StringsClass struct { }
字符串处理类
func NewStrings ¶
func NewStrings() *StringsClass
func (*StringsClass) BetweenStr ¶
func (*StringsClass) BetweenStr(str, start, end string) string
截取中间字符串
func (*StringsClass) FitterKeyWords ¶
func (*StringsClass) FitterKeyWords(input string, words []string) bool
关键词组过滤,检查是否存在
func (*StringsClass) SimilarText ¶
func (*StringsClass) SimilarText(first, second string, percent *float64) int
字符串相似度
Click to show internal directories.
Click to hide internal directories.