Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ik5/extratypes
Globally used data types on multiple projects of mine on their own package
https://github.com/ik5/extratypes
data-type golang json package packages reusable
Last synced: 27 days ago
JSON representation
Globally used data types on multiple projects of mine on their own package
- Host: GitHub
- URL: https://github.com/ik5/extratypes
- Owner: ik5
- License: apache-2.0
- Created: 2020-04-08T11:24:10.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-22T09:33:56.000Z (over 3 years ago)
- Last Synced: 2024-06-20T00:33:53.968Z (7 months ago)
- Topics: data-type, golang, json, package, packages, reusable
- Language: Go
- Size: 52.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
# Extra Types
The current package contains types that I require in projects where the type never
changes, and used globally.## Current Type Support
* Duration - Ability to store `time.Duration` over JSON and database.
* Numeric values - Ability to store and load `int` and `uint` family even when they are string for example.
* Bool - Ability to take boolean value as int, string and boolean and convert to `bool` type, with `nil` support.# TODO
- [x] Add Tests for nil duration
- [ ] Add more test covers for nil duration
- [ ] Add More int and uint type support