A simple web application to convert between different units of measurement, built with Golang.
- Length Conversion: Convert between millimeters, centimeters, meters, kilometers, inches, feet, yards, and miles.
- Weight Conversion: Convert between milligrams, grams, kilograms, ounces, and pounds.
- Temperature Conversion: Convert between Celsius, Fahrenheit, and Kelvin.
- Clean and responsive user interface for a smooth experience.
- Built with the standard Go net/http package and HTML templates for easy web development.
- Go 1.18 or higher
- A working internet connection to download dependencies
-
Clone the repository:
git clone https://github.com/your-username/unit-converter.git cd unit-converter
-
Install Dependencies (if any):
There are no third-party dependencies for this project since it uses Go's standard
net/http
andhtml/template
packages. -
Run the Application:
Use the following command to start the server:
go run main.go
By default, the application will run on
localhost:8080
. -
Access the Web App:
Open your web browser and navigate to:
http://localhost:8080
- Select the "Length" tab.
- Enter the value you want to convert.
- Choose the units to convert from and to (e.g.,
ft
tocm
). - Click "Convert" to see the result.
- Select the "Weight" tab.
- Enter the weight value to convert.
- Choose the units to convert from and to (e.g.,
kg
tolb
). - Click "Convert" to view the result.
- Select the "Temperature" tab.
- Enter the temperature value to convert.
- Choose the units to convert from and to (e.g.,
Celsius
toFahrenheit
). - Click "Convert" to get the converted temperature.
This project is licensed under the MIT License. See the LICENSE file for details.