proxy.golang.org : github.com/samonzeweb/goconstants
A simple helper package for better constants usage in go. The packapge is not simply `constants` as it's a very generic name leading to high risk of colision with others. The package contains a Metadata struct which implements some helpers. Create a Metadata variable for constants, and write small methods wrapping call to the helpers. Just pick helpers you need and ignore the others. The helpers are convenient but not the fastest. In a critical path consider using way to do the job, like using switch/case instead of maps. See example for usages.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/samonzeweb/goconstants
License: MIT
Latest release: over 3 years ago
First release: over 3 years ago
Namespace: github.com/samonzeweb
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 30 days ago