A small Go project providing commonly used unit conversions (length, temperature, time, volume).
- Lightweight utility functions for converting between common units
- Small CLI runner (
main.go) and reusableutilspackage
- Go 1.18+ installed (set
GOPATHor use modules)
Run directly with go run:
go run main.goBuild a binary:
go build -o unit-converter
./unit-converterImport the utils package from this repository and call the conversion functions in your code. Example:
package main
import (
"fmt"
"Unit-Converter/utils"
)
func main() {
// replace with available functions from `utils` (e.g. length, temperature conversions)
fmt.Println("Example usage: call utils conversion functions here")
}main.go— small runner / CLIutils/— conversion helperslength.gotemperature.gotime.govolume.go