https://github.com/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.
https://github.com/cstockton/safer
experimental go reflect reflection unsafe unsafe-code
Last synced: 17 days ago
JSON representation
Package safer provides safer access to unsafe operations by providing simple functions with high test coverage that will never panic, instead returning zero values.
- Host: GitHub
- URL: https://github.com/cstockton/safer
- Owner: cstockton
- License: mit
- Created: 2017-03-25T17:42:35.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-12T20:50:06.000Z (almost 9 years ago)
- Last Synced: 2025-08-14T17:54:43.379Z (6 months ago)
- Topics: experimental, go, reflect, reflection, unsafe, unsafe-code
- Language: Go
- Size: 5.86 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Package: safer
[](http://godoc.org/github.com/cstockton/go-safer)
[](https://goreportcard.com/report/github.com/cstockton/go-safer)
[](https://codecov.io/github/cstockton/go-safer?branch=master)
[](https://travis-ci.org/cstockton/go-safer)
[](https://raw.githubusercontent.com/cstockton/go-safer/master/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.