Documentation
¶
Index ¶
- Variables
- func FormatDate(date string) (string, error)
- func GetInstanceProtocol(c *fiber.Ctx) string
- func GetInstanceUrl(c *fiber.Ctx) string
- func GetJSON(url string) (gjson.Result, error)
- func LoadConfig()
- func RenderError(c *fiber.Ctx, code int) error
- func SetHeaders(c *fiber.Ctx)
- func SetReqHeaders(req *http.Request)
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 GetInstanceProtocol ¶ added in v1.4.0
func GetInstanceUrl ¶ added in v1.3.0
func LoadConfig ¶
func LoadConfig()
func SetHeaders ¶
func SetReqHeaders ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.