common

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectBody

func DetectBody(body []byte) string

DetectBody gbk convert to utf-8

func FetchHtml

func FetchHtml(name string, rule config.NovelRule) ([]map[string]string, error)

FetchHtml returns a raw html

func MakeAbsolute

func MakeAbsolute(homeUrl string, currentUrl string) string

MakeAbsolute returns a absolute url

func RequestURL

func RequestURL(url string) (*grequests.Response, error)

RequestURL returns a search result

Types

This section is empty.

Jump to

Keyboard shortcuts

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