utils

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config config
View Source
var ImgurRe = regexp.MustCompile(`https?://(i\.)?imgur\.com`)

Functions

func FormatDate

func FormatDate(date string) (string, error)

func GetJSON

func GetJSON(url string) (gjson.Result, error)

func LoadConfig

func LoadConfig()

func SetHeaders

func SetHeaders(c *fiber.Ctx)

func SetReqHeaders

func SetReqHeaders(req *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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