types

package module
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 0 Imported by: 8

README

Useful generic types for Go

PkgGoDev GHA Build Slack chat

I've found myself reimplementing some small types and patterns in a lot of my recent Go projects, so I thought I'd distill them into a single package.

Refer to the package docs for details.

Documentation

Overview

Package types contains a collection of types and functions that are useful in Go.

Directories

Path Synopsis
Package eventsource provides a pubsub.Topic that also stores the last published value in an atomic.Value.
Package eventsource provides a pubsub.Topic that also stores the last published value in an atomic.Value.
Package optional provides an Option type that can contain a value or nothing.
Package optional provides an Option type that can contain a value or nothing.
Package pubsub provides a simple publish/subscribe mechanism.
Package pubsub provides a simple publish/subscribe mechanism.
Package result provides a Result type that can contain a value or an error.
Package result provides a Result type that can contain a value or an error.
Package tuple provides pseudo-tuple types.
Package tuple provides pseudo-tuple types.

Jump to

Keyboard shortcuts

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