cstockton / safer

Package safer provides safer access to unsafe operations by providing simple functions with high test coverage that will never panic, instead returning zero values.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Package: safer

GoDoc Go Report Card Coverage Status Build Status License

About

Package safer provides safer access to unsafe operations by providing simple functions with high test coverage that will never panic, instead returning zero values.

Primary motivation was KindOf which gives a 30x performance improvement against the same operation in the reflect package. Useful when you only need to know the underlying kind, not manipulate the value directly.

About

Package safer provides safer access to unsafe operations by providing simple functions with high test coverage that will never panic, instead returning zero values.

License:MIT License


Languages

Language:Go 100.0%