Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jackc/box
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jackc/box
- Owner: jackc
- License: mit
- Created: 2014-01-19T03:32:53.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-06-21T13:33:36.000Z (over 10 years ago)
- Last Synced: 2024-06-22T09:25:00.069Z (5 months ago)
- Language: Go
- Size: 234 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
box
===Use a box around values that can be undefined, unknown, empty, or present.
As Go does not have generics or templates, a box.go.erb is processed to produce box.go with specialized box types for each underlying type. Currently, boxes are defined for bool, float32, float64, int8, int16, int32, int64, string, time.Time, uint8, uint16, uint32, and uint64 types.
If you need additional types, you may want to fork this project into a sub-package and customize the type list in box.go.erb.