Documentation
¶
Index ¶
- Constants
- func FmtEpochDate(input float64) string
- func FmtHumanDate(input float64) string
- func Incrementbyone(input int) int
- func Incrementbyonefloat(input float64) float64
- func QualifiesAsImg(input string) bool
- func RewriteURL(input string) string
- func Sanitize(input string) template.HTML
- func SetcfgCookie(ctx *fiber.Ctx, cookiename, cookievalue string)
- func SetupServer() *fiber.App
- func SortPostData(posts *types.Posts, resolutionToUse int)
- func ToPercentage(input float64) string
- func UGIDGen() string
Constants ¶
View Source
const ( ValidCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" CommonExtNoNSH = blackfriday.NoIntraEmphasis | blackfriday.Tables | blackfriday.FencedCode | blackfriday.Autolink | blackfriday.Strikethrough | blackfriday.HeadingIDs | blackfriday.BackslashLineBreak | blackfriday.DefinitionLists JSCookie = "JSEnabled" INFCookie = "INFScroll" NSFWCookie = "NSFWAllowed" ResCookie = "PreferredResolution" ThemeCookie = "PreferredTheme" GalleryCookie = "GalleryNav" USRCCookie = "TrustUSrc" MathCookie = "UseAdvMath" AwardCookie = "DisableAwards" CommentCookie = "DisableComments" JSCookieValue = "js_enabled" INFCookieValue = "infscroll_enabled" NSFWCookieValue = "nsfw_allowed" ResCookieValue = "preferred_resolution" ThemeCookieValue = "preferred_theme" GalleryCookieValue = "gallery_navigation" USRCCookieValue = "trust_unknownsources" MathCookieValue = "advanced_math" AwardCookieValue = "disable_awards" CommentCookieValue = "disable_comments" MaxResolution = 11037 CleanTimer = 2 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func FmtEpochDate ¶
func FmtHumanDate ¶
func Incrementbyone ¶
func Incrementbyonefloat ¶
func QualifiesAsImg ¶
func RewriteURL ¶
func SetcfgCookie ¶
func SetcfgCookie(ctx *fiber.Ctx, cookiename, cookievalue string)
func SetupServer ¶ added in v1.6.0
func SetupServer() *fiber.App
func SortPostData ¶
func ToPercentage ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.