AliSinaDevelo / GoServer

A super simple web server Written in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Go Web Server

This is a basic web server written in Go that handles simple form submissions and provides a "hello" endpoint. The server serves static files from the static directory.

Features

  • Form Handling: Accepts POST requests to the /form endpoint and displays the submitted data.
  • Hello Endpoint: Responds with a simple "Howdy!" message for GET requests to the /hello endpoint.
  • Static File Serving: Serves static files from the static directory.

Usage

  1. Clone the repository:

    git clone https://github.com/AliSinaDevelo/your-repo.git
    cd your-repo
    
  2. Run the server:

    go run main.go
    
    
  3. Access the following endpoints in your web browser or through a tool like curl or httpie:

http://localhost:8080/form: Form handling endpoint http://localhost:8080/hello: Hello endpoint

Dependencies

Go

License

This project is licensed under the MIT License.

About

A super simple web server Written in Go

License:MIT License


Languages

Language:Go 57.6%Language:HTML 42.4%