├── .github └── workflows │ └── go.yml ├── .gitignore ├── LICENSE ├── README.md ├── angular ├── acceleration.go ├── acceleration_generated.go ├── angle.go ├── angle_generated.go ├── angle_test.go ├── doc.go ├── generate.json ├── velocity.go └── velocity_generated.go ├── go.mod ├── internal ├── cmd │ └── units-codegen │ │ ├── codegen.go │ │ ├── template.go │ │ └── template.go.tmpl └── floattest │ └── floattest.go ├── linear ├── acceleration.go ├── acceleration_generated.go ├── distance.go ├── distance_generated.go ├── distance_test.go ├── generate.json ├── package_test.go ├── pkg.cov ├── velocity.go ├── velocity_generated.go └── velocity_test.go ├── planar ├── area.go ├── area_generated.go ├── generate.json └── point.go └── units.go /.github/workflows/go.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/.github/workflows/go.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/README.md -------------------------------------------------------------------------------- /angular/acceleration.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/angular/acceleration.go -------------------------------------------------------------------------------- /angular/acceleration_generated.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/angular/acceleration_generated.go -------------------------------------------------------------------------------- /angular/angle.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/angular/angle.go -------------------------------------------------------------------------------- /angular/angle_generated.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/angular/angle_generated.go -------------------------------------------------------------------------------- /angular/angle_test.go: -------------------------------------------------------------------------------- 1 | package angular_test 2 | -------------------------------------------------------------------------------- /angular/doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/angular/doc.go -------------------------------------------------------------------------------- /angular/generate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/angular/generate.json -------------------------------------------------------------------------------- /angular/velocity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/angular/velocity.go -------------------------------------------------------------------------------- /angular/velocity_generated.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/angular/velocity_generated.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/smyrman/units 2 | 3 | go 1.17 4 | -------------------------------------------------------------------------------- /internal/cmd/units-codegen/codegen.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/internal/cmd/units-codegen/codegen.go -------------------------------------------------------------------------------- /internal/cmd/units-codegen/template.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/internal/cmd/units-codegen/template.go -------------------------------------------------------------------------------- /internal/cmd/units-codegen/template.go.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/internal/cmd/units-codegen/template.go.tmpl -------------------------------------------------------------------------------- /internal/floattest/floattest.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/internal/floattest/floattest.go -------------------------------------------------------------------------------- /linear/acceleration.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/linear/acceleration.go -------------------------------------------------------------------------------- /linear/acceleration_generated.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/linear/acceleration_generated.go -------------------------------------------------------------------------------- /linear/distance.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/linear/distance.go -------------------------------------------------------------------------------- /linear/distance_generated.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/linear/distance_generated.go -------------------------------------------------------------------------------- /linear/distance_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/linear/distance_test.go -------------------------------------------------------------------------------- /linear/generate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/linear/generate.json -------------------------------------------------------------------------------- /linear/package_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/linear/package_test.go -------------------------------------------------------------------------------- /linear/pkg.cov: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/linear/pkg.cov -------------------------------------------------------------------------------- /linear/velocity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/linear/velocity.go -------------------------------------------------------------------------------- /linear/velocity_generated.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/linear/velocity_generated.go -------------------------------------------------------------------------------- /linear/velocity_test.go: -------------------------------------------------------------------------------- 1 | package linear_test 2 | -------------------------------------------------------------------------------- /planar/area.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/planar/area.go -------------------------------------------------------------------------------- /planar/area_generated.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/planar/area_generated.go -------------------------------------------------------------------------------- /planar/generate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/planar/generate.json -------------------------------------------------------------------------------- /planar/point.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/planar/point.go -------------------------------------------------------------------------------- /units.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smyrman/units/HEAD/units.go --------------------------------------------------------------------------------