optional.go

module
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT

README

optional.go

optional.go is a simple and generic wrapper around a value and a presence flag inspired by C++'s std::optional.

Installation

go get github.com/JonasMuehlmann/optional.go

How to use

This project exports the package optional, whose only exported entity is the generic Optional struct.

The Optional type implements several convenience methods and standard library interfaces( e.g json and SQL conversions).

To see the implemented methods and interfaces, refer to the documentation available at https://pkg.go.dev/github.com/JonasMuehlmann/optional.go.

Directories

Path Synopsis
optional.go is a simple wrapper around a value and a presence flag
optional.go is a simple wrapper around a value and a presence flag

Jump to

Keyboard shortcuts

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