tool

package
Version: v0.3.10-0...-125794b Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"

Variables

This section is empty.

Functions

func Base64DecodeString

func Base64DecodeString(src string) (dst string, err error)

func Base64EncodeBytes

func Base64EncodeBytes(origin []byte) (result string)

func Base64EncodeString

func Base64EncodeString(origin string, urlsafe bool) (result string)

func CheckInList

func CheckInList(list []string, item string) bool

func ContainChineseChar

func ContainChineseChar(str string) bool

func GetColly

func GetColly() *colly.Collector

Types

type HttpClient

type HttpClient struct {
	*http.Client
}

func GetHttpClient

func GetHttpClient() *HttpClient

func (*HttpClient) Get

func (c *HttpClient) Get(url string) (resp *http.Response, err error)

func (*HttpClient) Post

func (c *HttpClient) Post(url string, body io.Reader) (resp *http.Response, err error)

type Options

type Options map[string]interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto