stdx

module
v0.0.0-...-53ad115 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT

README

Go libraries that we reuse across our different projects. NOT SAFE FOR PUBLIC USE ☢️

The code is licensed under AGPL-3.0 (see LICENSE.txt)

Libs

ahocorasick is a fork of https://github.com/cloudflare/ahocorasick commit 054963ec939627782012c7c34eefd2942488d4e1 - License: BSD-3-Clause

automaxprocs is a fork of https://github.com/uber-go/automaxprocs commit 1ea14c35ce47a73089b824e504d1c92eeb61a5a6 - License: MIT

barcode is a fork of https://github.com/pingooio/stdx/barcode commit 4f5562c16b85a956bc8d650dc15344e1e1eb7c8c - License: MIT

crypto/blake3 is a fork of https://github.com/lukechampine/blake3 commit 65580ac6e377baeeebd5bb702e15795ead22e48d - License: MIT

check is a fork of https://github.com/go-check/check commit 10cb98267c6cb43ea9cd6793f29ff4089c306974 - License: MIT

cmd is a fork of https://github.com/google/go-cmp commit c3ad8435e7bef96af35732bc0789e5a2278c6d5f - License: BSD 3-Clause

cobra is a fork of https://github.com/spf13/cobra commit 212ea4078323771dc49b6f25a41d84efbaac3a4c to remove a lot of dependencies (doc directory deleted) - License: Apache 2.0

$ cd cobra && rm -rf doc go.mod go.sum && cd ..

concurrentmap is a fork of https://github.com/orcaman/concurrent-map commit 85296bce05256a80153a9e0c2bf6f4e167a4fe8d - License: MIT

cors is a fork of https://github.com/rs/cors commit fcebdb403f4d4585c705318c0e4d6d05a761a4ab - License: MIT

cpuinfo is a fork of https://github.com/klauspost/cpuid commit d685acd433f5dde4e315aa5b1eb8e72b9ecce117 - License: MIT

cron is a fork of https://github.com/robfig/cron commit bc59245fe10efaed9d51b56900192527ed733435 - License: MIT

crypto/chacha is a fork of https://github.com/aead/chacha20 commit 8b13a72661dae6e9e5dea04f344f0dc95ea29547 - License: MIT

feeds is a fork of https://github.com/jlelse/feeds commit 189f94254ad4b61b3b1908cf493f94390dc79870 - License: BSD 2-Clause

difflib is a fork of https://github.com/pmezard/go-difflib commit 5d4384ee4fb2527b0a1256a821ebfc92f91efefc - License: MIT

goldmark-highlighting is a fork of https://github.com/yuin/goldmark-highlighting commit 37449abec8cc453aad3ea47d44583b172b20f4b1 - License: MIT

go-gitdiff is a fork of https://github.com/bluekeyes/go-gitdiff commit 8584cd59afe0fd5af926a98ea3ef650fa4b1f952 - License: MIT

gostub is a fork of https://github.com/prashantv/gostub commit 9529e671b031c4a693f2d4c7861efbd3ba9152e5 - License: MIT

hostrouter is a fork of https://github.com/go-chi/hostrouter commit 03da900f6d45aaf0d5a1f392e2bafe8437ae5102 - License: MIT

imaging is a fork of https://github.com/disintegration/imaging commit d40f48ce0f098c53ab1fcd6e0e402da682262da5 - License: MIT

migrate is a fork of https://github.com/joncalhoun/migrate commit 34a9ee7d2b52f7b9f2261c2b6d9a8a0a83890a7f - License: MIT (see https://www.calhoun.io/database-migrations-in-go/)

mmdb is a fork of https://github.com/pingooio/stdx/mmdb commit 93d288be3cd9f86d28e7e2ad6b3950368a6cd152 - License: ISC

namesgenerator is a fork of https://github.com/moby/moby/blob/master/pkg/namesgenerator/names-generator.go commit 0f052eb4f56c05dcb8c444823ebde6ce0fac7197 - License: Apache 2.0

otp is a fork of https://github.com/pingooio/stdx/otp commit c62dc589378ae5c364d36819ddfb03fe391635ad - License: Apache 2.0

objx is a fork of https://github.com/stretchr/objx commit 57832dc6e27fd96037781d1737abf48c4e1edba0 - License: MIT

pcre is a fork of https://github.com/GRbit/go-pcre commit fe320facab0ca15e13786dc0774f5e86929728d2 - License: BSD 3-Clause

pflag is a fork of github.com/spf13/pflag commit fe320facab0ca15e13786dc0774f5e86929728d2 - License: BSD 3-Clause

retry is a fork of https://github.com/avast/retry-go commit 27363a141859f4031a7726c5bffcd670fb42d286 - License: MIT

reuseport is a fork of https://github.com/libp2p/go-reuseport commit 16c6bbdfdf27d8388b6797d767d57dcc1acc8780 - License: ISC

routingtable is a fork of https://github.com/tailscale/tailscale/tree/main/net/art commit 7c1d6e35a5863d58f3727af07dea0578fca87030 - License: BSD 3-Clause

schema is a fork of https://github.com/gorilla/schema.git commit 5fca2dce7a3a9cde2cd764a822ae373b4aaaaece - License: BSD-3-Clause

singleinstance is a fork of https://github.com/snabb/sitemap commit ac70ad656cd7f36cc5623306806a3583707c9a56 - License: MIT

sitemap is a fork of https://github.com/postfinance/sitemap commit 43dccf267e7c560d78380cbc074044ee27fb6e97 - License: MIT

spew is a fork of https://github.com/davecgh/go-spew commit d8f796af33cc11cb798c1aaeb27a4ebc5099927d - License: ISC

sysinfo is a fork of https://github.com/pingooio/stdx/sysinfo commit 99e836ba64f229922382eecd8a346e6b3d1b560a - License: MIT

testify is a fork of https://github.com/pingooio/stdx/testify commit b074924938f86d417f1c9a845c7e8b0784d7f937 - License: MIT

toml is a fork of https://github.com/pingooio/stdx/toml commit 1ba7f5b05951c7331f4eefea9bce295e2cb141f2 - License: MIT

useragent is a fork of https://github.com/mileusna/useragent commit f0b3dcfa90b239ba5323bded5eb433e3b7250b29 - License: MIT

uuid is a fork of https://github.com/google/uuid commit 0e97ed3b537927cb4afea366bc4cc36f6eb37e75 - License: BSD-3 Clause

validate is a fork of https://github.com/asaskevich/govalidator commit f21760c49a8d602d863493de796926d2a5c1138d - License: MIT

xxh3 is a fork of https://github.com/zeebo/xxh3 commit 3808c706a06a56abd56cecf5a2760d3ba1e2e49a - License: BSD-2-Clause

yaml is a fork of https://github.com/go-yaml/yaml commit f6f7691b1fdeb513f56608cd2c32c51f8194bf51 - License: MIT and Apache 2.0

Maintenance

$ go get -u ./...
$ go mod tidy

Directories

Path Synopsis
_deprecated
jst
toml
Package toml implements decoding and encoding of TOML files.
Package toml implements decoding and encoding of TOML files.
toml/cmd/toml-test-decoder
Command toml-test-decoder satisfies the toml-test interface for testing TOML decoders.
Command toml-test-decoder satisfies the toml-test interface for testing TOML decoders.
toml/cmd/toml-test-encoder
Command toml-test-encoder satisfies the toml-test interface for testing TOML encoders.
Command toml-test-encoder satisfies the toml-test interface for testing TOML encoders.
toml/cmd/tomlv
Command tomlv validates TOML documents and prints each key's type.
Command tomlv validates TOML documents and prints each key's type.
Package automaxprocs automatically sets GOMAXPROCS to match the Linux container CPU quota, if any.
Package automaxprocs automatically sets GOMAXPROCS to match the Linux container CPU quota, if any.
internal/cgroups
Package cgroups provides utilities to access Linux control group (CGroups) parameters (CPU quota, for example) for a given process.
Package cgroups provides utilities to access Linux control group (CGroups) parameters (CPU quota, for example) for a given process.
maxprocs
Package maxprocs lets Go programs easily configure runtime.GOMAXPROCS to match the configured Linux CPU quota.
Package maxprocs lets Go programs easily configure runtime.GOMAXPROCS to match the configured Linux CPU quota.
aztec
Package aztec can create Aztec Code barcodes
Package aztec can create Aztec Code barcodes
codabar
Package codabar can create Codabar barcodes
Package codabar can create Codabar barcodes
code128
Package code128 can create Code128 barcodes
Package code128 can create Code128 barcodes
code39
Package code39 can create Code39 barcodes
Package code39 can create Code39 barcodes
code93
Package code93 can create Code93 barcodes
Package code93 can create Code93 barcodes
datamatrix
Package datamatrix can create Datamatrix barcodes
Package datamatrix can create Datamatrix barcodes
ean
Package ean can create EAN 8 and EAN 13 barcodes.
Package ean can create EAN 8 and EAN 13 barcodes.
pdf417
Package pdf417 can create PDF-417 barcodes
Package pdf417 can create PDF-417 barcodes
qr
Package qr can be used to create QR barcodes.
Package qr can be used to create QR barcodes.
twooffive
Package twooffive can create interleaved and standard "2 of 5" barcodes.
Package twooffive can create interleaved and standard "2 of 5" barcodes.
utils
Package utils contain some utilities which are needed to create barcodes
Package utils contain some utilities which are needed to create barcodes
cmp
Package cmp determines equality of values.
Package cmp determines equality of values.
cmpopts
Package cmpopts provides common options for the cmp package.
Package cmpopts provides common options for the cmp package.
internal/diff
Package diff implements an algorithm for producing edit-scripts.
Package diff implements an algorithm for producing edit-scripts.
internal/function
Package function provides functionality for identifying function types.
Package function provides functionality for identifying function types.
internal/teststructs/foo1
Package foo is deliberately named differently than the parent directory.
Package foo is deliberately named differently than the parent directory.
internal/teststructs/foo2
Package foo is deliberately named differently than the parent directory.
Package foo is deliberately named differently than the parent directory.
Package cobra is a commander providing a simple interface to create powerful modern CLI interfaces.
Package cobra is a commander providing a simple interface to create powerful modern CLI interfaces.
package cpuinfo provides information about the CPU running the current program.
package cpuinfo provides information about the CPU running the current program.
cmd/cpuid
package cpuinfo provides information about the CPU running the current program.
package cpuinfo provides information about the CPU running the current program.
Package cron implements a cron spec parser and job runner.
Package cron implements a cron spec parser and job runner.
Package crypto provides a high level, secure, easy to use, and hard to misuse API to common cryptographic operations.
Package crypto provides a high level, secure, easy to use, and hard to misuse API to common cryptographic operations.
blake3
Package blake3 implements the BLAKE3 cryptographic hash function.
Package blake3 implements the BLAKE3 cryptographic hash function.
blake3/bao
Package bao implements BLAKE3 verified streaming.
Package bao implements BLAKE3 verified streaming.
blake3/guts
Package guts provides a low-level interface to the BLAKE3 cryptographic hash function.
Package guts provides a low-level interface to the BLAKE3 cryptographic hash function.
chacha
Package chacha implements some low-level functions of the ChaCha cipher family.
Package chacha implements some low-level functions of the ChaCha cipher family.
chacha20
Package chacha20 implements the ChaCha20 / XChaCha20 stream chipher.
Package chacha20 implements the ChaCha20 / XChaCha20 stream chipher.
kdf
deprecated
check
Package check is a rich testing extension for Go's testing package.
Package check is a rich testing extension for Go's testing package.
pretty
Package pretty provides pretty-printing for Go values.
Package pretty provides pretty-printing for Go values.
text
Package text provides rudimentary functions for manipulating text in paragraphs.
Package text provides rudimentary functions for manipulating text in paragraphs.
text/cmd/agg
Agg computes aggregate values over tabular text.
Agg computes aggregate values over tabular text.
text/colwriter
Package colwriter provides a write filter that formats input lines in multiple columns.
Package colwriter provides a write filter that formats input lines in multiple columns.
text/mc
Command mc prints in multiple columns.
Command mc prints in multiple columns.
Package difflib is a partial port of Python difflib module.
Package difflib is a partial port of Python difflib module.
Package dotenv is a go port of the ruby dotenv library (https://github.com/bkeepers/dotenv)
Package dotenv is a go port of the ruby dotenv library (https://github.com/bkeepers/dotenv)
Package email provides an easy to use and hard to misuse email API
Package email provides an easy to use and hard to misuse email API
Syndication (feed) generator library for golang.
Syndication (feed) generator library for golang.
go-gitdiff
gitdiff
Package gitdiff parses and applies patches generated by Git.
Package gitdiff parses and applies patches generated by Git.
package highlighting is a extension for the goldmark(http://github.com/yuin/goldmark).
package highlighting is a extension for the goldmark(http://github.com/yuin/goldmark).
Taken from $GOROOT/src/pkg/net/http/chunked needed to write https responses to client.
Taken from $GOROOT/src/pkg/net/http/chunked needed to write https responses to client.
ext/html
// extension to goproxy that will allow you to easily filter web browser related content.
// extension to goproxy that will allow you to easily filter web browser related content.
Package gostub is used for stubbing variables in tests, and resetting the original value once the test has been run.
Package gostub is used for stubbing variables in tests, and resetting the original value once the test has been run.
Package guid helps generate and parse GUIDs.
Package guid helps generate and parse GUIDs.
cors
Package cors is net/http handler to handle CORS related requests as defined by http://www.w3.org/TR/cors/
Package cors is net/http handler to handle CORS related requests as defined by http://www.w3.org/TR/cors/
Package imaging provides basic image processing functions (resize, rotate, crop, brightness/contrast adjustments, etc.).
Package imaging provides basic image processing functions (resize, rotate, crop, brightness/contrast adjustments, etc.).
log
slogx
package slogx provides various helpers to wrok with the stdlib's "log/slog" package see https://pkg.go.dev/log/slog https://gist.github.com/wijayaerick/de3de10c47a79d5310968ba5ff101a19 https://github.com/golang/go/issues/56345 https://go.googlesource.com/proposal/+/master/design/56345-structured-logging.md https://github.com/golang/go/wiki/Resources-for-slog
package slogx provides various helpers to wrok with the stdlib's "log/slog" package see https://pkg.go.dev/log/slog https://gist.github.com/wijayaerick/de3de10c47a79d5310968ba5ff101a19 https://github.com/golang/go/issues/56345 https://go.googlesource.com/proposal/+/master/design/56345-structured-logging.md https://github.com/golang/go/wiki/Resources-for-slog
package mmdb provides a reader for the MaxMind DB file format.
package mmdb provides a reader for the MaxMind DB file format.
money
vat
Package namesgenerator generates random names.
Package namesgenerator generates random names.
netx
reuseport
Package reuseport provides Listen and Dial functions that set socket options in order to be able to reuse ports.
Package reuseport provides Listen and Dial functions that set socket options in order to be able to reuse ports.
Package objx provides utilities for dealing with maps, slices, JSON and other data.
Package objx provides utilities for dealing with maps, slices, JSON and other data.
package opt provides optional types.
package opt provides optional types.
package otc provides alphanumeric One Time Codes that can be used for email-based 2FA, account verification and more.
package otc provides alphanumeric One Time Codes that can be used for email-based 2FA, account verification and more.
otp
Package otp implements both HOTP and TOTP based one time passcodes in a Google Authenticator compatible manner.
Package otp implements both HOTP and TOTP based one time passcodes in a Google Authenticator compatible manner.
interop Module
Package pflag is a drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.
Package pflag is a drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.
Simple library for retry mechanism
Simple library for retry mechanism
Package reuseport provides Listen and Dial functions that set socket options in order to be able to reuse ports.
Package reuseport provides Listen and Dial functions that set socket options in order to be able to reuse ports.
package routingtable provides a routing table that implements the Allotment Routing Table (ART) algorithm by Donald Knuth, as described in the paper by Yoichi Hariguchi.
package routingtable provides a routing table that implements the Allotment Routing Table (ART) algorithm by Donald Knuth, as described in the paper by Yoichi Hariguchi.
Package gorilla/schema fills a struct with form values.
Package gorilla/schema fills a struct with form values.
Package singleinstance provides a mechanism to ensure, that only one instance of a program is running
Package singleinstance provides a mechanism to ensure, that only one instance of a program is running
Package spew implements a deep pretty printer for Go data structures to aid in debugging.
Package spew implements a deep pretty printer for Go data structures to aid in debugging.
s3
Package sysinfo is a Go library providing Linux OS / kernel / hardware system information.
Package sysinfo is a Go library providing Linux OS / kernel / hardware system information.
cmd/sysinfo
sysinfo is a very simple utility demonstrating sysinfo library capabilities.
sysinfo is a very simple utility demonstrating sysinfo library capabilities.
cpuid
Package cpuid gives Go programs access to CPUID opcode.
Package cpuid gives Go programs access to CPUID opcode.
** We are working on testify v2 and would love to hear what you'd like to see in it, have your say here: https://cutt.ly/testify ** Package testify is a set of packages that provide many tools for testifying that your code will behave as you intend.
** We are working on testify v2 and would love to hear what you'd like to see in it, have your say here: https://cutt.ly/testify ** Package testify is a set of packages that provide many tools for testifying that your code will behave as you intend.
assert
Package assert provides a set of comprehensive testing tools for use with the normal Go testing system.
Package assert provides a set of comprehensive testing tools for use with the normal Go testing system.
assert/internal/unsafetests
This package exists just to isolate tests that reference the unsafe package.
This package exists just to isolate tests that reference the unsafe package.
assert/yaml
Package yaml is just an indirection to handle YAML deserialization.
Package yaml is just an indirection to handle YAML deserialization.
http
Deprecated: Use net/http/httptest instead.
Deprecated: Use net/http/httptest instead.
mock
Package mock provides a system by which it is possible to mock your objects and verify calls are happening as expected.
Package mock provides a system by which it is possible to mock your objects and verify calls are happening as expected.
require
Package require implements the same assertions as the `assert` package but stops test execution when a test fails.
Package require implements the same assertions as the `assert` package but stops test execution when a test fails.
suite
Package suite contains logic for creating testing suite structs and running the methods on those structs as tests.
Package suite contains logic for creating testing suite structs and running the methods on those structs as tests.
tools
watchgod
watchgod is a very simple compile daemon for Go.
watchgod is a very simple compile daemon for Go.
Package uuid generates and inspects UUIDs.
Package uuid generates and inspects UUIDs.
Package govalidator is package of validators and sanitizers for strings, structs and collections.
Package govalidator is package of validators and sanitizers for strings, structs and collections.
avo
Package yaml implements YAML support for the Go language.
Package yaml implements YAML support for the Go language.

Jump to

Keyboard shortcuts

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