utils

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: GPL-3.0 Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWebPageBodyReader added in v0.1.3

func GetWebPageBodyReader(u string) (r io.Reader, err error)

func GetWegPageDOM added in v0.1.3

func GetWegPageDOM(u string) (node *html.Node, err error)

func RequestGet

func RequestGet(u string) (resp *http.Response, err error)

func SimilarSlice

func SimilarSlice(a, b []string) (i int)

SimilarSlice 对比两个字符串组,得到其中相等字符串的数量,"i < len(a)" and "i < len(b)"

func StringInSlice

func StringInSlice(s string, ss []string) bool

StringInSlice string in []stirng like python "if a in b" keyword

func StringSliceEqual

func StringSliceEqual(a, b []string) bool

func TupleSlice

func TupleSlice(a []string) []string

TupleSlice 去除重复字符串

func U8ToGBK added in v0.1.3

func U8ToGBK(a string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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