gg

module
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0

README

gg (Generic Generics)

My personal extension of the standard library, mostly containing foundational generic types.

List of packages

  • assetembed: HTTP handler for efficiently serving embedded assets using the cache-busting pattern
  • jsonmatch: matching of encoded JSON payloads against fixed assertions
  • is: binary operations that are expressed in a curried style, e.g. is.LessThan(b)(a) == a < b, for use with Option.IsSomeAnd() etc.
  • option: an Option type with strong isolation
  • options: additional functions for type Option

Future developments

I may add additional types (e.g. Result, Either or Pair) if:

  • there is a compelling usecase for myself, and
  • I find an API that is ergonomic in practice (this is the biggest reason why Result might never happen).

Directories

Path Synopsis
Package assetembed provides a HTTP handler for serving asset files embedded in a Go binary through the embed.FS type.
Package assetembed provides a HTTP handler for serving asset files embedded in a Go binary through the embed.FS type.
internal
Package is contains functions to express binary operations in a curried style.
Package is contains functions to express binary operations in a curried style.
Package jsonmatch implements matching of encoded JSON payloads against fixed assertions.
Package jsonmatch implements matching of encoded JSON payloads against fixed assertions.
Package optional provides an Option type for Go.
Package optional provides an Option type for Go.
Package options provides additional functions for type option.Option that cannot be expressed as methods on the Option type itself.
Package options provides additional functions for type option.Option that cannot be expressed as methods on the Option type itself.

Jump to

Keyboard shortcuts

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