Skip to content

leodeveloper/go-html-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

very basic project in go lang for the go server with form submission

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors