https://github.com/einride/unit-go
Go SDK for modeling physical units and conversion between them
https://github.com/einride/unit-go
go golang physical-modeling physical-units
Last synced: 6 months ago
JSON representation
Go SDK for modeling physical units and conversion between them
- Host: GitHub
- URL: https://github.com/einride/unit-go
- Owner: einride
- License: mit
- Created: 2019-02-06T13:39:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-25T13:18:46.000Z (7 months ago)
- Last Synced: 2025-04-03T06:23:50.408Z (6 months ago)
- Topics: go, golang, physical-modeling, physical-units
- Language: Go
- Homepage: https://pkg.go.dev/go.einride.tech/unit
- Size: 146 KB
- Stars: 5
- Watchers: 19
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
# Unit Go
Go SDK for modeling physical units and conversion between them.
## Installation
```
go get go.einride.tech/unit
```## Example
```go
angle := 3 * unit.Radian
fmt.Println(angle.Degrees())
// Output: 171.88733853924697
```