Skip to content

LahiruCodez/Unit-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unit-Converter

A small Go project providing commonly used unit conversions (length, temperature, time, volume).

Features

  • Lightweight utility functions for converting between common units
  • Small CLI runner (main.go) and reusable utils package

Prerequisites

  • Go 1.18+ installed (set GOPATH or use modules)

Build & Run

Run directly with go run:

go run main.go

Build a binary:

go build -o unit-converter
./unit-converter

Example (library usage)

Import 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")
}

Project Structure

  • main.go — small runner / CLI
  • utils/ — conversion helpers
    • length.go
    • temperature.go
    • time.go
    • volume.go

About

Simple unit converter to values with different category

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages