https://github.com/leodeveloper/go-html-server
very basic project in go lang for the go server with form submission
https://github.com/leodeveloper/go-html-server
Last synced: about 1 year ago
JSON representation
very basic project in go lang for the go server with form submission
- Host: GitHub
- URL: https://github.com/leodeveloper/go-html-server
- Owner: leodeveloper
- Created: 2024-04-22T14:22:56.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-23T07:28:42.000Z (about 2 years ago)
- Last Synced: 2024-04-23T16:09:20.447Z (about 2 years ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
SimpleHTTPServer
This repository hosts a straightforward HTTP server written in Go (Golang). The server is designed to serve static files from a directory named "static" and handle basic form submissions. It comprises two HTTP handlers—one for serving static files and another for processing form submissions.
How to Use:
Clone the repository: git clone https://github.com/your-username/SimpleHTTPServer.git
Navigate to the directory: cd SimpleHTTPServer
Execute the server: go run main.go
Access the server in your web browser at http://localhost:8080
File Structure:
main.go: Contains the primary server implementation.
static: Directory holding static files (e.g., HTML, CSS, JavaScript).
Endpoints:
/: Serves static files from the "static" directory.
/form: Handles form submissions.
/hello: Greets the user with a simple message.
Dependencies:
Go (Golang) standard library
Contributing:
Fork the repository.
Create a feature branch for your changes.
Commit your modifications with clear and concise messages.
Push your changes to your fork.
Submit a pull request.
Contributors:
Your Name
License:
This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgments:
This project takes inspiration from example.com.
Gratitude to contributors and the Go community for their invaluable resources and support.
Contact:
For inquiries or feedback, please email leodeveloper@hotmail.com.