lib/

directory
v0.2.1 Latest Latest
Warning

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

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

Directories

Path Synopsis
Package dateformat formats dates by PHP date()-style patterns (entity.DateFormat).
Package dateformat formats dates by PHP date()-style patterns (entity.DateFormat).
Package dbwatch - whether the site's database answers: a loop pinging it, so the requests and the background work learn it is gone at once instead of each waiting for a connection that doesn't come.
Package dbwatch - whether the site's database answers: a loop pinging it, so the requests and the background work learn it is gone at once instead of each waiting for a connection that doesn't come.
Package debounce coalesces bursts of calls into one.
Package debounce coalesces bursts of calls into one.
Package htmlimages rewrites <img> tags in HTML content into resized-preview links (with PhotoSwipe captions), using an imagestyle.ResizeService.
Package htmlimages rewrites <img> tags in HTML content into resized-preview links (with PhotoSwipe captions), using an imagestyle.ResizeService.
Package mailsender sends transactional email via SMTP.
Package mailsender sends transactional email via SMTP.
Package metrics - the service's metrics in the Prometheus text format (version 0.0.4), the one Prometheus, Grafana Alloy, VictoriaMetrics and the Elastic Agent read: counters, histograms and values read when the metrics are asked for.
Package metrics - the service's metrics in the Prometheus text format (version 0.0.4), the one Prometheus, Grafana Alloy, VictoriaMetrics and the Elastic Agent read: counters, histograms and values read when the metrics are asked for.
Package numberformat shows numbers by a language's separators: the decimal one and the one between thousands, each a translation of its own (message contexts ContextDecimal, ContextThousands: "." and "," in English).
Package numberformat shows numbers by a language's separators: the decimal one and the one between thousands, each a translation of its own (message contexts ContextDecimal, ContextThousands: "." and "," in English).
Package oauth - OAuth 2.0 sign-in with Google, VK ID and Yandex: the authorization URL, the code exchange and the user's profile normalized to Profile.
Package oauth - OAuth 2.0 sign-in with Google, VK ID and Yandex: the authorization URL, the code exchange and the user's profile normalized to Profile.
Package photoswipe builds markup for the PhotoSwipe gallery viewer.
Package photoswipe builds markup for the PhotoSwipe gallery viewer.
Package requestid - the request's id: in its context, in the X-Request-Id response header and in the log lines written with the context (Handler), so a page's answer and its log lines can be matched.
Package requestid - the request's id: in its context, in the X-Request-Id response header and in the log lines written with the context (Handler), so a page's answer and its log lines can be matched.
Package searchtext turns text into the words a search index keeps and a query into the words it looks for: folded (lowercase, "ё" as "е") and stemmed in a language (Snowball), so "cats" finds "cat".
Package searchtext turns text into the words a search index keeps and a query into the words it looks for: folded (lowercase, "ё" as "е") and stemmed in a language (Snowball), so "cats" finds "cat".
Package secretbox seals the secrets a site keeps in its database (the keys and passwords of outside services, the two-factor secrets) with a key from its environment, so a dump of the database doesn't give them away: AES-256-GCM, the key derived from the given one with HKDF-SHA256.
Package secretbox seals the secrets a site keeps in its database (the keys and passwords of outside services, the two-factor secrets) with a key from its environment, so a dump of the database doesn't give them away: AES-256-GCM, the key derived from the given one with HKDF-SHA256.
Package slogquiet keeps errors that aren't the server's fault out of the ERROR level: a request the client cancelled or a connection it closed (context canceled, broken pipe, connection reset) is logged at DEBUG.
Package slogquiet keeps errors that aren't the server's fault out of the ERROR level: a request the client cancelled or a connection it closed (context canceled, broken pipe, connection reset) is logged at DEBUG.
Package textdiff compares two texts for a side-by-side view: by paragraphs, then by words inside the paragraphs that changed.
Package textdiff compares two texts for a side-by-side view: by paragraphs, then by words inside the paragraphs that changed.

Jump to

Keyboard shortcuts

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