An open API service indexing awesome lists of open source software.

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

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.