common

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 7 Imported by: 4

Documentation

Index

Constants

View Source
const UserAgent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36"

Variables

This section is empty.

Functions

func SaveFile added in v0.3.8

func SaveFile(path string, data []byte) (err error)

func ScanLines added in v0.5.1

func ScanLines(data []byte, atEOF bool) (advance int, token []byte, err error)

ScanLines scan lines but keep the suffix \r and \n

Types

type HttpClient added in v0.3.8

type HttpClient struct {
	*http.Client
}

func GetHttpClient added in v0.3.8

func GetHttpClient() *HttpClient

func (*HttpClient) Get added in v0.3.8

func (c *HttpClient) Get(urls ...string) (body []byte, err error)

type Result added in v0.3.1

type Result interface {
	String() string
}

Jump to

Keyboard shortcuts

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