golibs

module
v0.35.7 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: Unlicense

README

golibs

Code Coverage Go Report Card Go Reference

Go utility packages primarily used in AdGuard projects. See the documentation for individual packages on https://pkg.go.dev/github.com/AdguardTeam/golibs for more information and examples.

Directories

Path Synopsis
Package cache provides a simple LRU cache implementation
Package cache provides a simple LRU cache implementation
Package container provides common container types.
Package container provides common container types.
Package contextutil contains types and utilities for working with contexts.
Package contextutil contains types and utilities for working with contexts.
Package errors is a drop-in replacement and extension of the Go standard library's package errors.
Package errors is a drop-in replacement and extension of the Go standard library's package errors.
Package hostsfile provides utilities for working with system hosts files.
Package hostsfile provides utilities for working with system hosts files.
Package httphdr contains the names of HTTP headers.
Package httphdr contains the names of HTTP headers.
internal
reflectutil
Package reflectutil provides a safe and limited interface to some of the features of package reflect.
Package reflectutil provides a safe and limited interface to some of the features of package reflect.
tools module
Package ioutil contains extensions and utilities for package io from the standard library.
Package ioutil contains extensions and utilities for package io from the standard library.
Package log contains necessary logging functions
Package log contains necessary logging functions
Package logutil contains extensions and utilities for package log from the standard library.
Package logutil contains extensions and utilities for package log from the standard library.
optslog
Package optslog contains optimizations making debug logs using log/slog allocate less when debug or trace modes are not enabled.
Package optslog contains optimizations making debug logs using log/slog allocate less when debug or trace modes are not enabled.
slogutil
Package slogutil contains extensions and utilities for package log/slog from the standard library.
Package slogutil contains extensions and utilities for package log/slog from the standard library.
Package mathutil contains generic helpers for common algorithms and mathematic operations.
Package mathutil contains generic helpers for common algorithms and mathematic operations.
randutil
Package randutil contains utilities for random numbers.
Package randutil contains utilities for random numbers.
Package netutil contains common utilities for IP, MAC, and other kinds of network addresses.
Package netutil contains common utilities for IP, MAC, and other kinds of network addresses.
httputil
Package httputil contains common constants, functions, and types for working with HTTP.
Package httputil contains common constants, functions, and types for working with HTTP.
sysresolv
Package sysresolv provides cross-platform functionality to discover DNS resolvers currently used by the system.
Package sysresolv provides cross-platform functionality to discover DNS resolvers currently used by the system.
urlutil
Package urlutil contains types and utilities for dealing with URLs.
Package urlutil contains types and utilities for dealing with URLs.
Package osutil contains utilities for functions requiring system calls and other OS-specific APIs.
Package osutil contains utilities for functions requiring system calls and other OS-specific APIs.
executil
Package executil contains utilities for running OS commands.
Package executil contains utilities for running OS commands.
Package otelutil contains common utilities for working with OpenTelemetry.
Package otelutil contains common utilities for working with OpenTelemetry.
Package redisutil contains common utilities for working with Redis.
Package redisutil contains common utilities for working with Redis.
Package requestid contains utilities for working with request ids.
Package requestid contains utilities for working with request ids.
Package sentryutil contains utilities for functions for working with Sentry.
Package sentryutil contains utilities for functions for working with Sentry.
Package service defines types and interfaces for long-running services that can be started and shut down.
Package service defines types and interfaces for long-running services that can be started and shut down.
Package stringutil contains utilities for dealing with strings.
Package stringutil contains utilities for dealing with strings.
Package syncutil contains extensions and utilities for package sync from the standard library.
Package syncutil contains extensions and utilities for package sync from the standard library.
Package testutil contains utilities for common testing patterns.
Package testutil contains utilities for common testing patterns.
fakeio
Package fakeio contains fake implementations of interfaces from package io from the standard library.
Package fakeio contains fake implementations of interfaces from package io from the standard library.
fakeio/fakefs
Package fakefs contains fake implementations of interfaces from package io/fs from the standard library.
Package fakefs contains fake implementations of interfaces from package io/fs from the standard library.
fakenet
Package fakenet contains fake implementations of interfaces from package net from the standard library.
Package fakenet contains fake implementations of interfaces from package net from the standard library.
fakenet/fakehttp
Package fakehttp contains fake implementations of interfaces from packages net/http and github.com/AdguardTeam/golibs/netutil/httputil.
Package fakehttp contains fake implementations of interfaces from packages net/http and github.com/AdguardTeam/golibs/netutil/httputil.
fakeos/fakeexec
Package fakeexec contains fake implementations of interfaces from package osutil/executil.
Package fakeexec contains fake implementations of interfaces from package osutil/executil.
fakeredis
Package fakeredis contains fake implementations of interfaces from packages redis and redisutil.
Package fakeredis contains fake implementations of interfaces from packages redis and redisutil.
fakeservice
Package fakeservice contains fake implementations of interfaces from package service.
Package fakeservice contains fake implementations of interfaces from package service.
faketime
Package faketime contains fake implementations of interfaces from package timeutil.
Package faketime contains fake implementations of interfaces from package timeutil.
redistest
Package redistest contains utilities for testing Redis.
Package redistest contains utilities for testing Redis.
sentrytest
Package sentrytest contains fake implementations of interfaces for the Sentry module.
Package sentrytest contains fake implementations of interfaces for the Sentry module.
servicetest
Package servicetest contains test utilities for package service.
Package servicetest contains test utilities for package service.
Package timeutil contains types and utilities for working with time and duration values.
Package timeutil contains types and utilities for working with time and duration values.
Package validate contains functions for validating values.
Package validate contains functions for validating values.

Jump to

Keyboard shortcuts

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