utils

package
v0.0.0-...-7b5fe61 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const UserAgent = "Antosik/rito-news (https://github.com/Antosik/rito-news)"

Variables

This section is empty.

Functions

func MinInt

func MinInt(a, b int) int

func NewGETJSONRequest

func NewGETJSONRequest(url string) (*http.Request, error)

func NewGETRequest

func NewGETRequest(url string) (*http.Request, error)

func ParseDateTimeWithLayouts

func ParseDateTimeWithLayouts(datetime string, layouts []string) (time.Time, error)

func ReadHTML

func ReadHTML(html string) (*goquery.Document, error)

func RunGETHTMLRequest

func RunGETHTMLRequest(url string) (string, error)

func TrimSlashes

func TrimSlashes(path string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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