util

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserAgents = []string{
	"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/90.0",
	"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/89.0",
	"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0",
	"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0",
	"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0",
}

Functions

func AsBasename added in v1.24.0

func AsBasename(s string) string

func Decode1 added in v1.27.0

func Decode1(p string, a, c int, k []string) string

func Decode2 added in v1.27.0

func Decode2(s string) string

func Decode3 added in v1.27.0

func Decode3(s string) (ret string)

func GbkToUtf8

func GbkToUtf8(s string) string

func GetHtml

func GetHtml(URL string) (*goquery.Document, error)

func GetResponse

func GetResponse(URL string, referer *string) (*http.Response, error)

func GetText

func GetText(URL string) (string, error)

func RandUA

func RandUA() string

func ReadCSV added in v1.18.0

func ReadCSV(file string) ([][]string, error)

func Reverse

func Reverse(a interface{})

func WriteCSV added in v1.18.0

func WriteCSV(file string, records [][]string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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