util

package
v0.0.0-...-43945a8 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DateFormat = "Jan 2, 2006, 15:04:05 PM"

DateFormat defines the Path of Exile date format used

Variables

This section is empty.

Functions

func GetFormError

func GetFormError(body io.ReadCloser) error

GetFormError returns the first form error

func GetFormHash

func GetFormHash(url string, c *http.Client) (string, error)

GetFormHash returns a XSRF hash of the given url form

func GetReplyHash

func GetReplyHash(url string, c *http.Client) (string, error)

GetReplyHash returns a XSRF hash of the given reply form

func IsMaintenance

func IsMaintenance(doc *goquery.Document) bool

IsMaintenance checks if the document is on maintenance mode

Types

type Pagination

type Pagination struct {
	Current int
	First   int
	Last    int
}

Pagination pagination data

func GetPagination

func GetPagination(url string, c *http.Client) (*Pagination, error)

GetPagination returns the given URL pagination div

func GetPaginationFromDoc

func GetPaginationFromDoc(doc *goquery.Document) (*Pagination, error)

GetPaginationFromDoc retrieves a pagination from a goquery document

Jump to

Keyboard shortcuts

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