Loading repository dataβ¦
Loading repository dataβ¦
namanyawalkar2006 / repository
# π Go Static Web Server A simple web server built with Go that serves static websites using Go's built-in `net/http` package. This project is designed to help beginners understand how web servers work while providing a clean foundation for building more advanced Go web applications.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A lightweight and beginner-friendly web server built with Go (Golang) that serves static websites using Go's built-in net/http package.
This project demonstrates how to host HTML, CSS, and JavaScript files locally with minimal code, making it a great starting point for learning backend development in Go.
project/
β
βββ main.go
β
βββ static/
βββ index.html
βββ style.css
βββ script.js
Check your Go version:
go version
Clone the repository:
git clone <YOUR_REPOSITORY_URL>
Go to the project folder:
cd project
cd P1
cd p1
Run the server:
go run main.go
Visit:
http://localhost:8080/
Open main.go and modify:
http.ListenAndServe(":8080", nil)
Example:
http.ListenAndServe(":3000", nil)
Then access:
http://localhost:3000/
This project demonstrates:
This project is available under the MIT License.
-----Naman.K.Y------