pkg/

directory
v1.129.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT

Directories

Path Synopsis
Package awsopt provides functions to configure common AWS options for the official aws-sdk-go-v2 library.
Package awsopt provides functions to configure common AWS options for the official aws-sdk-go-v2 library.
Package awssecretcache provides a simple client for retrieving and caching secrets from AWS Secrets Manager.
Package awssecretcache provides a simple client for retrieving and caching secrets from AWS Secrets Manager.
Package bootstrap provides a simple way to bootstrap an application with managed configuration, logging, metrics, application context, and shutdown signals.
Package bootstrap provides a simple way to bootstrap an application with managed configuration, logging, metrics, application context, and shutdown signals.
Package config handles the configuration of a program.
Package config handles the configuration of a program.
Package countrycode provides fast, reusable access to ISO-3166 country metadata.
Package countrycode provides fast, reusable access to ISO-3166 country metadata.
Package countryphone provides fast geographical lookup for phone number prefixes.
Package countryphone provides fast geographical lookup for phone number prefixes.
Package decint provides utility functions to parse and represent decimal values as fixed-point integers with a defined precision.
Package decint provides utility functions to parse and represent decimal values as fixed-point integers with a defined precision.
Package devlake provides a basic client for the DevLake Webhook API.
Package devlake provides a basic client for the DevLake Webhook API.
Package dnscache provides a local DNS cache that is safe for concurrent use, bounded in size, and uses single-flight request collapsing to avoid duplicate lookups.
Package dnscache provides a local DNS cache that is safe for concurrent use, bounded in size, and uses single-flight request collapsing to avoid duplicate lookups.
Package encode provides a collection of helper functions for safe serialization and deserialization across system boundaries such as databases, queues, caches, and RPC payloads.
Package encode provides a collection of helper functions for safe serialization and deserialization across system boundaries such as databases, queues, caches, and RPC payloads.
Package encrypt provides helpers for encrypting and decrypting data safely for transport and storage.
Package encrypt provides helpers for encrypting and decrypting data safely for transport and storage.
Package enumbitmap provides helpers to encode and decode enumeration values as bitmaps.
Package enumbitmap provides helpers to encode and decode enumeration values as bitmaps.
Package enumcache provides thread-safe storage and lookup for enumeration name and ID mappings.
Package enumcache provides thread-safe storage and lookup for enumeration name and ID mappings.
Package enumdb loads enumeration sets from relational database tables into thread-safe enum caches.
Package enumdb loads enumeration sets from relational database tables into thread-safe enum caches.
Package errutil provides helpers for creating and inspecting errors in Go applications.
Package errutil provides helpers for creating and inspecting errors in Go applications.
Package filter provides generic rule-based filtering capabilities for struct slices.
Package filter provides generic rule-based filtering capabilities for struct slices.
Package healthcheck provides a simple reusable framework for defining and collecting health checks for external services or application components.
Package healthcheck provides a simple reusable framework for defining and collecting health checks for external services or application components.
Package httpclient provides a configurable, instrumented HTTP client for service communication.
Package httpclient provides a configurable, instrumented HTTP client for service communication.
Package httpretrier provides configurable retry logic for HTTP requests.
Package httpretrier provides configurable retry logic for HTTP requests.
Package httpreverseproxy provides a reusable HTTP reverse proxy wrapper.
Package httpreverseproxy provides a reusable HTTP reverse proxy wrapper.
Package httpserver defines a configurable default HTTP server with common routes and production-ready options.
Package httpserver defines a configurable default HTTP server with common routes and production-ready options.
Package httputil contains reusable HTTP request and response utility functions for Go services.
Package httputil contains reusable HTTP request and response utility functions for Go services.
jsendx
Package jsendx implements an extended JSend response model for HTTP APIs.
Package jsendx implements an extended JSend response model for HTTP APIs.
Package ipify allows to retrieve the public IP address of a service instance using the external ipify API (https://www.ipify.org/).
Package ipify allows to retrieve the public IP address of a service instance using the external ipify API (https://www.ipify.org/).
Package jirasrv provides a basic boilerplate client for the official Jira server API.
Package jirasrv provides a basic boilerplate client for the official Jira server API.
Package jwt provides simple wrapper functions for managing basic JWT Authentication with username/password credentials.
Package jwt provides simple wrapper functions for managing basic JWT Authentication with username/password credentials.
Package kafka provides a simple high-level API for producing and consuming Apache Kafka messages.
Package kafka provides a simple high-level API for producing and consuming Apache Kafka messages.
Package kafkacgo provides a simple high-level API for producing and consuming Apache Kafka messages.
Package kafkacgo provides a simple high-level API for producing and consuming Apache Kafka messages.
Package logsrv implements a zerolog-based logger compatible with the standard log/slog.
Package logsrv implements a zerolog-based logger compatible with the standard log/slog.
Package logutil provides general logging utilities for log/slog integration.
Package logutil provides general logging utilities for log/slog integration.
Package maputil provides a collection of utility functions for Go maps.
Package maputil provides a collection of utility functions for Go maps.
Package metrics defines a common interface for instrumenting applications and components to collect metrics.
Package metrics defines a common interface for instrumenting applications and components to collect metrics.
opentel
Package opentel implements the metrics interface for OpenTelemetry.
Package opentel implements the metrics interface for OpenTelemetry.
prometheus
Package prometheus implements the metrics interface for Prometheus.
Package prometheus implements the metrics interface for Prometheus.
statsd
Package statsd implements the metrics interface for StatsD.
Package statsd implements the metrics interface for StatsD.
Package mysqllock provides a distributed locking mechanism that leverages MySQL's internal functions.
Package mysqllock provides a distributed locking mechanism that leverages MySQL's internal functions.
Package numtrie provides a numerical-indexed trie data structure.
Package numtrie provides a numerical-indexed trie data structure.
Package paging provides utilities to handle pagination.
Package paging provides utilities to handle pagination.
Package passwordhash implements a practical model to create and verify a password hashes using a strong one-way hashing algorithm.
Package passwordhash implements a practical model to create and verify a password hashes using a strong one-way hashing algorithm.
Package passwordpwned allows you to verify if a password has been pwned (compromised) in a data breach.
Package passwordpwned allows you to verify if a password has been pwned (compromised) in a data breach.
Package periodic provides a way to execute a given function periodically at a specified time interval.
Package periodic provides a way to execute a given function periodically at a specified time interval.
Package phonekeypad provides functions to convert number strings to sequences of numbers corresponding to a standard phone keypad:
Package phonekeypad provides functions to convert number strings to sequences of numbers corresponding to a standard phone keypad:
Package profiling allows accessing the pprof profiling data via the HTTP interface of the Go program.
Package profiling allows accessing the pprof profiling data via the HTTP interface of the Go program.
Package random contains a collection of utility functions for generating random numbers and strings.
Package random contains a collection of utility functions for generating random numbers and strings.
Package redact contains utility functions to obscure sensitive data.
Package redact contains utility functions to obscure sensitive data.
Package redis provides a simple and basic wrapper client for interacting with Redis (https://redis.io), an in-memory data store.
Package redis provides a simple and basic wrapper client for interacting with Redis (https://redis.io), an in-memory data store.
Package retrier provides the ability to automatically repeat a user-defined function based on the error status.
Package retrier provides the ability to automatically repeat a user-defined function based on the error status.
Package s3 provides a simple and basic wrapper client for interacting with an AWS S3 bucket.
Package s3 provides a simple and basic wrapper client for interacting with an AWS S3 bucket.
Package sfcache provides a simple, local, thread-safe, fixed-size cache for expensive lookups with single-flight deduplication.
Package sfcache provides a simple, local, thread-safe, fixed-size cache for expensive lookups with single-flight deduplication.
Package slack is a basic client for the official Slack API used to send messages via a Webhook.
Package slack is a basic client for the official Slack API used to send messages via a Webhook.
Package sleuth provides a basic client for the official Sleuth.io API.
Package sleuth provides a basic client for the official Sleuth.io API.
Package sliceutil provides a collection of utility functions for Go slices.
Package sliceutil provides a collection of utility functions for Go slices.
Package sqlconn provides a simple way to connect to a SQL database and manage the connection.
Package sqlconn provides a simple way to connect to a SQL database and manage the connection.
Package sqltransaction provides a simple way to execute a function inside an SQL transaction.
Package sqltransaction provides a simple way to execute a function inside an SQL transaction.
Package sqlutil provides SQL utility functions.
Package sqlutil provides SQL utility functions.
Package sqlxtransaction provides a simple way to execute a function inside an SQLX transaction.
Package sqlxtransaction provides a simple way to execute a function inside an SQLX transaction.
Package sqs provides a simple and basic wrapper client for interacting with AWS SQS (Amazon Simple Queue Service).
Package sqs provides a simple and basic wrapper client for interacting with AWS SQS (Amazon Simple Queue Service).
Package stringkey provides the ability to create a simple unique hash key from multiple strings.
Package stringkey provides the ability to create a simple unique hash key from multiple strings.
Package stringmetric provides functions to calculate string metrics, also known as string similarity metrics or string distance functions.
Package stringmetric provides functions to calculate string metrics, also known as string similarity metrics or string distance functions.
Package strsplit contains utility functions to split Unicode strings.
Package strsplit contains utility functions to split Unicode strings.
Package testutil provides common testing utility functions.
Package testutil provides common testing utility functions.
Package threadsafe provides an interface for thread-safe functions that can be safely used across multiple goroutines.
Package threadsafe provides an interface for thread-safe functions that can be safely used across multiple goroutines.
tsmap
Package tsmap provides a collection of generic thread-safe Go map utility functions that can be safely used between multiple goroutines.
Package tsmap provides a collection of generic thread-safe Go map utility functions that can be safely used between multiple goroutines.
tsslice
Package tsslice provides a collection of generic thread-safe Go slice utility functions that can be safely used across multiple goroutines.
Package tsslice provides a collection of generic thread-safe Go slice utility functions that can be safely used across multiple goroutines.
Package timeutil provides utility functions for working with time-related operations.
Package timeutil provides utility functions for working with time-related operations.
Package traceid allows storing and retrieving a Trace ID value associated with a context.Context and an HTTP request.
Package traceid allows storing and retrieving a Trace ID value associated with a context.Context and an HTTP request.
Package typeutil contains a collection of type-related generic utility functions.
Package typeutil contains a collection of type-related generic utility functions.
Package uhex contains a collection of fast-encoding hex functions for unsigned integers.
Package uhex contains a collection of fast-encoding hex functions for unsigned integers.
Package validator provides a simple and extensible field validation mechanism for structs and individual fields based on tags.
Package validator provides a simple and extensible field validation mechanism for structs and individual fields based on tags.
Package valkey provides a simple and basic wrapper client for interacting with Valkey (https://valkey.io), an open source in-memory data store.
Package valkey provides a simple and basic wrapper client for interacting with Valkey (https://valkey.io), an open source in-memory data store.

Jump to

Keyboard shortcuts

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