pkg/

directory
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MIT

Directories

Path Synopsis
Package embedtag reads the embed tags of a text: [[<kind>:<name>]] stands for something embedded in its place when the text is shown (a block, a View's list), and is left out of the text's excerpts.
Package embedtag reads the embed tags of a text: [[<kind>:<name>]] stands for something embedded in its place when the text is shown (a block, a View's list), and is left out of the text's excerpts.
Package filestore keeps files under keys - slash-separated paths relative to the store's root ("content/images/a.jpg") - whatever holds them: a directory on disk (Local) or a bucket of an object storage.
Package filestore keeps files under keys - slash-separated paths relative to the store's root ("content/images/a.jpg") - whatever holds them: a directory on disk (Local) or a bucket of an object storage.
filestoretest
Package filestoretest checks that a filestore.Store keeps the package's contract: every store runs the same tests (Run).
Package filestoretest checks that a filestore.Store keeps the package's contract: every store runs the same tests (Run).
Package fsname sanitizes arbitrary (including Cyrillic) strings into safe filesystem path segments and file name stems.
Package fsname sanitizes arbitrary (including Cyrillic) strings into safe filesystem path segments and file name stems.
Package htmlsanitize sanitizes user-submitted HTML (comments, forum posts, private messages, profile signatures) before it is stored, stripping dangerous markup (<script>, event handlers, javascript: URLs, <iframe>, etc.) while keeping the common safe formatting tags a rich-text editor produces: bold/italic/underline, links, images, lists, and so on.
Package htmlsanitize sanitizes user-submitted HTML (comments, forum posts, private messages, profile signatures) before it is stored, stripping dangerous markup (<script>, event handlers, javascript: URLs, <iframe>, etc.) while keeping the common safe formatting tags a rich-text editor produces: bold/italic/underline, links, images, lists, and so on.
Package i18n translates the interface (t()/formatPlural()): source strings are English, catalogs give their translations per language.
Package i18n translates the interface (t()/formatPlural()): source strings are English, catalogs give their translations per language.
Package mailtemplate substitutes [site:...]/[user:...] placeholders, and a module's own (TokenData.Extra), in email subject/body templates.
Package mailtemplate substitutes [site:...]/[user:...] placeholders, and a module's own (TokenData.Extra), in email subject/body templates.
Package metadescription builds a plain-text meta description from HTML content.
Package metadescription builds a plain-text meta description from HTML content.
Package panicsafe recovers panics in goroutines that run outside Go's per-request HTTP panic recovery.
Package panicsafe recovers panics in goroutines that run outside Go's per-request HTTP panic recovery.
Package randtoken generates cryptographically random, hex-encoded tokens.
Package randtoken generates cryptographically random, hex-encoded tokens.
Package sitetime holds the site's time zone (entity.SiteInformation.Timezone): dates are stored in UTC and shown in this zone.
Package sitetime holds the site's time zone (entity.SiteInformation.Timezone): dates are stored in UTC and shown in this zone.
internal/zonesgen command
Command zonesgen writes pkg/sitetime/zones_gen.go - the canonical IANA time zones (the tz database's Zone entries, not its Link aliases) of the world's regions, from a tzdata.zi file (default /usr/share/zoneinfo/tzdata.zi).
Command zonesgen writes pkg/sitetime/zones_gen.go - the canonical IANA time zones (the tz database's Zone entries, not its Link aliases) of the world's regions, from a tzdata.zi file (default /usr/share/zoneinfo/tzdata.zi).
Package textcut cuts text to a length in characters (runes): a letter is never split, whatever its script.
Package textcut cuts text to a length in characters (runes): a letter is never split, whatever its script.
Package translit writes Cyrillic letters in Latin: the one table the slugs and the file names use.
Package translit writes Cyrillic letters in Latin: the one table the slugs and the file names use.

Jump to

Keyboard shortcuts

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