Registry / serialization / guregu-null-v2

guregu-null-v2

JSON →
library2.1.2gogounverified

Package null contains SQL types that consider zero input and null input as separate values, with convenient support for JSON and text marshaling.

go get gopkg.in/guregu/null.v2
INSTALL
IMPORT
SIG · GUREGU-NULL-V2
G
guregu-null-v2
serializationgov2.1.2
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
gopkg.in/guregu/null.v2

Creates a nullable integer and sets its value.

package main import ( "fmt" "gopkg.in/guregu/null.v2" ) func main() { var n null.Int n.Scan(42) fmt.Println(n.Valid, n.Int64) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

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