This Go HTTP server project provides a lightweight and customizable solution for handling HTTP requests and serving responses. Built using the standard Go library, it offers a simple yet powerful way to create an HTTP server with support for multiple routes and customizable responses.
This is a simple HTTP server implemented in Go.
- Handles HTTP requests and returns responses.
- Supports multiple routes with customizable responses.
- Easy to configure and extend.
To use this HTTP server, you need to have Go installed on your machine.
-
Clone the repository:
git clone https://github.com/shreverr/http-server-go.git cd http-server-go
-
Run the application
go run main.go
Once the server is running, you can access it at http://localhost:4221.
- /: Returns a "Hello, World!" message.
- /echo/{message}: Echoes back the provided message.