x

module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: BSD-3-Clause

README

Miscellaneous Go packages

Go Reference godocs.io

Miscellaneous Go packages that are too small to warrant their own repositories but too big to copy-paste every time

colours

Provides colour constants and a function to get the average colour from an image.

parameters

Provides parameters.Parameters and parameters.Flags types, both to make it easier to work with command-line style input in non-terminal contexts.

parameters.Parameters is pretty much a direct port of PluralKit's command parser to Go.

duration

Provides functions to humanize durations.

strings

Provides a couple string-related functions.

concurrent

Provides thread-safe, generic Value, Map, Set, and OrderedSet types.

optional

Provides a generic Optional type to consume JSON.

Directories

Path Synopsis
Package colours provides colour constants and a couple of utility functions.
Package colours provides colour constants and a couple of utility functions.
Package concurrent provides a handful of thread-safe generic types.
Package concurrent provides a handful of thread-safe generic types.
Package duration implements functions to turn durations into a human-readable format.
Package duration implements functions to turn durations into a human-readable format.
Package optional implements an Optional[T] type for JSON use.
Package optional implements an Optional[T] type for JSON use.
Package parameters provides an argument parser for dealing with a mix of quoted and unquoted arguments.
Package parameters provides an argument parser for dealing with a mix of quoted and unquoted arguments.
Package strings provides a couple functions for strings, as an extension on the standard library's strings package.
Package strings provides a couple functions for strings, as an extension on the standard library's strings package.

Jump to

Keyboard shortcuts

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