Registry / utility / go-pg-zerochecker

go-pg-zerochecker

JSON →
library0.2.0gogounverified

Package zerochecker provides utilities to check if a value is the zero value for its type.

go get github.com/go-pg/zerochecker
INSTALL
IMPORT
SIG · GO-PG-ZEROCHECKER
G
go-pg-zerochecker
utilitygov0.2.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.

zerochecker
github.com/go-pg/zerochecker

Check if a value is the zero value for its type.

package main import ( "fmt" "github.com/go-pg/zerochecker" ) func main() { fmt.Println(zerochecker.IsZero(0)) // true fmt.Println(zerochecker.IsZero("")) // true fmt.Println(zerochecker.IsZero(42)) // false }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
go-pg-zerochecker — go get go-pg-zerochecker · libregistry