Registry / utility / antihax-optional

antihax-optional

JSON →
library1.0.0gogounverified

Package optional provides optional types for Go, enabling nullable values for primitives and common types.

go get github.com/antihax/optional
INSTALL
IMPORT
SIG · ANTIHAX-OPTIONAL
A
antihax-optional
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.

optional
github.com/antihax/optional

Create and use an optional string value.

package main import ( "fmt" "github.com/antihax/optional" ) func main() { opt := optional.NewString("hello") if opt.IsPresent() { fmt.Println(opt.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
23 hits · last 30 days
node
18
OpenAI (training)
2
Meta
1
Amazon
1
Resources
antihax-optional — go get antihax-optional · libregistry