/optional

Provides versions of primitive types that can be nil

Primary LanguageGoApache License 2.0Apache-2.0

optional GoDoc

Package optional provides versions of primitive types that can be nil. These are useful in methods that update some of an API object's fields.

Note: optional is a non-internal fork of the optional package in googleapis/google-cloud-go, which is itself a mirror of https://code.googlesource.com/gocloud.

Getting started

go get github.com/lukasschwab/optional

Usage

import "github.com/lukasschwab/optional"

See, e.g., met.