https://github.com/marstr/units
Type definitions for working with many different units.
https://github.com/marstr/units
imperial metric si units
Last synced: 7 months ago
JSON representation
Type definitions for working with many different units.
- Host: GitHub
- URL: https://github.com/marstr/units
- Owner: marstr
- License: mit
- Created: 2018-11-15T08:39:09.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2020-09-19T22:26:11.000Z (about 5 years ago)
- Last Synced: 2025-02-01T02:19:56.254Z (9 months ago)
- Topics: imperial, metric, si, units
- Language: Go
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Units
[](https://github.com/marstr/units/actions?query=workflow%3ABuild) [](https://pkg.go.dev/github.com/marstr/units)
Find yourself wishing that you had type defintions for all of the units in your life, comparable to `time.Time`? This
library hopes to bring that level of convenience and type safety while working with all sorts of different quantities.
All of these types are defined to be 64 bits wide for maximum precision and range. Types which loan themselves to being
discrete are expressed as unsigned integers, types that are more prone to being continuous are of type `float64`.
# License
This library is available for use under the very permissive MIT license. The full text of which can be found here:
[./LICENSE](./LICENSE)