utils

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: AGPL-3.0 Imports: 11 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 GetInstanceProtocol added in v1.4.0

func GetInstanceProtocol(c *fiber.Ctx) string

func GetInstanceUrl added in v1.3.0

func GetInstanceUrl(c *fiber.Ctx) string

func GetJSON

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

func LoadConfig

func LoadConfig()

func RenderError added in v1.2.4

func RenderError(c *fiber.Ctx, code int) error

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