Registry / utility / dtcookie-opt

dtcookie-opt

JSON →
library1.0.0gogounverified

Provides a generic optional type for Go, enabling explicit handling of absent values.

go get github.com/dtcookie/opt
INSTALL
IMPORT
SIG · DTCOOKIE-OPT
D
dtcookie-opt
utilitygov1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

opt
github.com/dtcookie/opt

Creates an optional value and retrieves it.

package main import ( "fmt" "github.com/dtcookie/opt" ) func main() { v := opt.Of(42) fmt.Println(v.Get()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
dtcookie-opt — go get dtcookie-opt · libregistry