Categorygithub.com/pingooio/stdx
module
0.0.0-20241226145920-483c662f7ff1
Repository: https://github.com/pingooio/stdx.git
Documentation: pkg.go.dev

# 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

base64 is a fork of https://github.com/segmentio/asm commit 1cfacc81a878d4a07b13f51f2368cd86893d23fa - License: MIT-0

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

# Packages

No description provided by the author
No description provided by the author
Package automaxprocs automatically sets GOMAXPROCS to match the Linux container CPU quota, if any.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package cmp determines equality of values.
Package cobra is a commander providing a simple interface to create powerful modern CLI interfaces.
No description provided by the author
No description provided by the author
package cpuinfo provides information about the CPU running the current program.
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.
No description provided by the author
No description provided by the author
No description provided by the author
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) Examples/readme can be found on the GitHub page at https://github.com/pingooio/stdx/dotenv The TL;DR is that you make a .env file that looks something like SOME_ENV_VAR=somevalue and then in your go code you can call dotenv.Load() and all the env vars declared in .env will be available through os.Getenv("SOME_ENV_VAR").
Package email provides an easy to use and hard to misuse email API.
No description provided by the author
Syndication (feed) generator library for golang.
No description provided by the author
No description provided by the author
package highlighting is a extension for the goldmark(http://github.com/yuin/goldmark).
Package goproxy provides a customizable HTTP proxy, supporting hijacking HTTPS connection.
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.
No description provided by the author
Package imaging provides basic image processing functions (resize, rotate, crop, brightness/contrast adjustments, etc.).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
package mmdb provides a reader for the MaxMind DB file format.
No description provided by the author
Package namesgenerator generates random names.
No description provided by the author
Package objx provides utilities for dealing with maps, slices, JSON and other data.
package opt provides optional types.
No description provided by the author
package otc provides alphanumeric One Time Codes that can be used for email-based 2FA, account verification and more.
Package otp implements both HOTP and TOTP based one time passcodes in a Google Authenticator compatible manner.
No description provided by the author
Package pflag is a drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Simple library for retry mechanism slightly inspired by [Try::Tiny::Retry](https://metacpan.org/pod/Try::Tiny::Retry) # SYNOPSIS http get with retry: url := "http://example.com" var body []byte err := retry.Do( func() error { resp, err := http.Get(url) if err != nil { return err } defer resp.Body.Close() body, err = ioutil.ReadAll(resp.Body) if err != nil { return err } return nil }, ) fmt.Println(body) [next examples](https://github.com/pingooio/stdx/retrytree/master/examples) # SEE ALSO * [giantswarm/retry-go](https://github.com/giantswarm/retry-go) - slightly complicated interface.
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.
No description provided by the author
Package gorilla/schema fills a struct with form values.
No description provided by the author
No description provided by the author
Package singleinstance provides a mechanism to ensure, that only one instance of a program is running.
No description provided by the author
No description provided by the author
Package spew implements a deep pretty printer for Go data structures to aid in debugging.
No description provided by the author
No description provided by the author
Package sysinfo is a Go library providing Linux OS / kernel / hardware system information.
** 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.
No description provided by the author
No description provided by the author
No description provided by the author
Package uuid generates and inspects UUIDs.
Package govalidator is package of validators and sanitizers for strings, structs and collections.
No description provided by the author
No description provided by the author
Package yaml implements YAML support for the Go language.
No description provided by the author