home.social

#gogen — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #gogen, aggregated by home.social.

  1. A new version of #gogen is here!

    Started over a decade ago, #gogen has been a solid foundation for numerous production Go services.

    It provides boilerplate code for quickly building a production-ready web server and is an #opensource collection of high-quality, 100% unit-tested Go (#golang) packages. Each package follows common conventions and can be imported individually.

    Check out and star #gogen: github.com/tecnickcom/gogen

    Full documentation: pkg.go.dev/github.com/tecnickc

  2. New number-related #gogen Go (#golang) package:

    * #countryphone (pkg.go.dev/github.com/tecnickc): Provides some geographical information of phone numbers or phone prefixes. This includes the ISO-3166 Alpha-2 country codes and the area when available (e.g. nation, state, province, territory). The default data can be replaced with custom datasets.

  3. New number-related #gogen Go (#golang) package:

    * #numtrie (pkg.go.dev/github.com/tecnickc): Provides an efficient numerical-indexed trie data structure. The trie allows to store and quickly retrieve values of any type associated with a numerical key. In particular, this implementation supports partial matches and returns a multi-status code on the type of match.

  4. New number-related #gogen Go (#golang) package:

    * #phonekeypad (pkg.go.dev/github.com/tecnickc): Quick functions to convert raw phone numbers strings to sequences of numbers corresponding to a standard phone keypad. For example the phone number string "1-999-EXAMPLE" gets converted to "[1 9 9 9 3 9 2 6 7 5 3]". Extra symbols are automatically removed.

  5. If your Go (#golang) service or application deals with country information and ISO-3166 codes, you should consider using the new #gogen #countrycode package (pkg.go.dev/github.com/tecnickc).

    This package provides information about countries and their ISO-3166 codes. The data is stored in a compact binary format, ensuring fast access and a small memory footprint. The default data can be overridden with a custom one. Multiple indexes are automatically created for efficient querying by various fields.

  6. New #GoLang #opensource package: sfcache!

    I'm excited to announce the release of a new open-source Go package, sfcache, which provides a simple, local, thread-safe, fixed-size and single-flight cache for expensive lookup calls in Go!

    Examples applications includes the #dnscache and #awssecretcache packages in #gogen.

    Check out the documentation for detailed instructions and examples: pkg.go.dev/github.com/tecnickc