Registry / utility / martinlindhe-unit

martinlindhe-unit

JSON →
library0.0.0-20230420213220-4adfd7d0a0d6gogounverified

Package unit provides types and conversions for physical units such as length, mass, and temperature.

go get github.com/martinlindhe/unit
INSTALL
IMPORT
SIG · MARTINLINDHE-UNIT
M
martinlindhe-unit
utilitygov0.0.0-20230420213220-4adfd7d0a0d6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

unit
github.com/martinlindhe/unit

Converts 100 meters to kilometers using the unit package.

package main import ( "fmt" "github.com/martinlindhe/unit" ) func main() { meters := unit.FromMeters(100) kilometers := meters.Kilometers() fmt.Printf("100 meters is %.2f kilometers\n", kilometers) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20230420213220-4adfd7d0a0d6latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
martinlindhe-unit — go get martinlindhe-unit · libregistry