Documentation ¶
Index ¶
- func Compress(src []byte) []byte
- func Decompress(src []byte) ([]byte, error)
- func GBKToUTF8(src []byte) ([]byte, error)
- func RemoveInvalidChars(src string, chars ...string) string
- func ReplaceInvalidSpaces(src string) string
- func Strip(src string) string
- func Trim(s_ string, chars_ string) string
- func UTF8ToGBK(src []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decompress ¶
func RemoveInvalidChars ¶
RemoveInvalidChars 删除单句中的无效字符,如一些无意义的特殊字符
func ReplaceInvalidSpaces ¶
ReplaceInvalidSpaces 替换html页面中各种奇葩的空白符为空格
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.