WebRouter

WebRouter is a simple web server written in Go. It serves static files from the static directory and handles two routes: /hello and /form.

Getting Started

To run the server, you need to have Go installed on your machine. If you don’t have it installed, you can download it from the official Go website. Once you have Go installed, you can clone this repository and navigate to the project directory:

git clone https://github.com/Abishnoi69/WebRouter.git
cd WebRouter

Then, you can run the server using the following command:

go run main.go

The server will start running on port 8080. You can access it by navigating to http://localhost:8080 in your web browser.

Routes

The server has two routes:

Static Files

The static files served by the server are located in the static directory. The home page (index.html) contains a welcome message and a link to a contact form.

Dependencies

The server uses the following Go packages:

Contributing

If you find a bug or have an idea for a new feature, feel free to open an issue or submit a pull request. We welcome contributions from the community and are happy to help you get started.