Registry / serialization / guregu-null

guregu-null

JSON →
library4.0.0+incompatiblegogounverified

SQL types that distinguish zero input from null input, with JSON and text marshaling support.

go get github.com/guregu/null
INSTALL
IMPORT
SIG · GUREGU-NULL
G
guregu-null
serializationgov4.0.0+incompatible
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.

null
github.com/guregu/null

Create a nullable integer and get its value.

package main import ( "fmt" "github.com/guregu/null" ) func main() { n := null.IntFrom(42) fmt.Println(n.ValueOrZero()) }
Debug
Known issues
gotchaVersion 4.0.0+incompatible uses a major version suffix that may cause import path issues with older Go modules.
fix
Use the latest compatible version or migrate to the v5 module if available.
affects: 4.0.0+incompatible
Upgrade
Version history
4.0.0+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
guregu-null — go get guregu-null · libregistry