Help us shape the future of Go! Take the 2026 Go Developer Survey

pkg/

directory
v1.21.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: GPL-3.0

Directories

Path Synopsis
Package cache is the read-through Redis cache of the GORM repositories.
Package cache is the read-through Redis cache of the GORM repositories.
Package conf loads the YAML configuration file into a struct, first filling each field that has a `default` tag with that value, so a key the file leaves out keeps its documented default.
Package conf loads the YAML configuration file into a struct, first filling each field that has a `default` tag with that value, so a key the file leaves out keeps its documented default.
Package httpx holds the HTTP conventions the handlers share: binding a request's query, form and JSON values (ShouldBind), the response envelope and ETags.
Package httpx holds the HTTP conventions the handlers share: binding a request's query, form and JSON values (ShouldBind), the response envelope and ETags.
Package logger is the process log.
Package logger is the process log.
logtest
Package logtest redirects the process-wide logger output for the length of a test, so a test can assert what was logged or keep expected errors out of the test output.
Package logtest redirects the process-wide logger output for the length of a test, so a test can assert what was logged or keep expected errors out of the test output.
Package orm opens the application's database, MySQL or PostgreSQL, from the database configuration, and holds the dialect-aware query helpers (CSV-column filters, escaped LIKE searches, date buckets, batched deletes) that repositories need to run the same queries on both drivers.
Package orm opens the application's database, MySQL or PostgreSQL, from the database configuration, and holds the dialect-aware query helpers (CSV-column filters, escaped LIKE searches, date buckets, batched deletes) that repositories need to run the same queries on both drivers.
Package random makes the random and derived strings the application hands out: verification codes, tokens and secrets from crypto/rand, and the invite-code encoding of user ids.
Package random makes the random and derived strings the application hands out: verification codes, tokens and secrets from crypto/rand, and the invite-code encoding of user ids.
Package requestmeta carries bounded HTTP request metadata across application layers and queue boundaries.
Package requestmeta carries bounded HTTP request metadata across application layers and queue boundaries.
Package slicesx converts the lists the database stores as comma-separated strings, such as plan and node id lists, to and from slices, and deduplicates slices while keeping their order.
Package slicesx converts the lists the database stores as comma-separated strings, such as plan and node id lists, to and from slices, and deduplicates slices while keeping their order.
Package templatex renders the operator-configured text templates, such as the SMS message templates.
Package templatex renders the operator-configured text templates, such as the SMS message templates.
Package timeutil provides centralized timezone handling for the application.
Package timeutil provides centralized timezone handling for the application.
Package trace sets up OpenTelemetry tracing for the process.
Package trace sets up OpenTelemetry tracing for the process.
Package xerr is the error model of the API.
Package xerr is the error model of the API.

Jump to

Keyboard shortcuts

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