Documentation
¶
Index ¶
Constants ¶
View Source
const DEFAULT_MIME = "application/octet-stream"
View Source
const DIR_INDEX_HTML = `` /* 9795-byte string literal not displayed */
Copied from Chrome file:// url dir index page. Go html/template format.
View Source
const INFINITE_TIMEOUT = 86400 * 365 * 100
seconds of 1 years, aka: infinite.
View Source
const LINE_BREAKS = "\r\n"
View Source
const MEDIATYPE_HTML = "text/html"
View Source
const MIME_HTML = "text/html; charset=utf-8"
View Source
const MIME_TXT = "text/plain; charset=utf-8"
View Source
const SGP_ENV_PREFIX = "SGP_"
Variables ¶
View Source
var EncryptedUrlRegex = regexp.MustCompile(`^((?P<eid>[_a-zA-Z0-9]+?)_)?(?P<eurl>[a-zA-Z0-9]{18,})(?P<epath>/.*)?$`)
match with a encrypted url base62 string
View Source
var TextualMediatypes = []string{
"application/json",
"application/xml",
"application/yaml",
"application/toml",
"application/atom+xml",
"application/x-sh",
}
textual metiatypes besides "text/*
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.