A very simple Golang server handling basic GET and POST requests

GOLANG SERVER

INTRO

As a true Blockchain enthusiast, I had to learn Solidity and Golang to participate to several projects. This repository consists of a very simple Golang server handling basic GET and POST requests.

USAGE

  1. Run the server : go run server.go
  2. Going to http://localhost:8080/ should lead you to index.html
  3. Going to http://localhost:8080/hello should display "Hello!"
  • Try curl -X POST http://localhost:8080/hello & curl -X POST http://localhost:8080/hell to see the two error paths
  1. Going to http://localhost:8080/form.html should lead you to form.html
  • Complete the form and then submit, it should lead to http://localhost:8080/form with the correct successful message.
  1. Going to http://localhost:8080/sortArrayForm.html should lead you to sortArrayForm.html
  • Completing the form with coma separated numbers output a sorted array.
Similar Resources

Simple Golang Product API Server

Simple Golang Product API Server Layanan API untuk menambah, merubah informasi, mengambil data dan menghapus produk. Implementasi kode terinspirasi ol

Nov 20, 2022

Simple HTTP server written in golang

Simple HTTP server written in golang Simple webserver in golang, to demonstrate basic functionalities like e.g. sending back some request header info,

Aug 31, 2022

Go-simplehttp - Simple HTTP server written in golang

Simple HTTP server written in golang Simple webserver in golang, to demonstrate

Jan 1, 2022

Oogway is a simple web server with dynamic content generation and extendability in mind supporting a Git based workflow.

Oogway Oogway is a simple web server with dynamic content generation and extendability in mind supporting a Git based workflow. It's somewhere in betw

Nov 9, 2022

RBTI Golang Server uses PostgreSQL and for its main database and uses Elasticsearch

RBTI Golang Server This server is used for my thesis project, it uses PostgreSQL and for its main database and uses Elasticsearch for faster query spe

Jan 17, 2022

A simple SHOUTcast server.

DudelDu DudelDu is a simple audio/video streaming server using the SHOUTcast protocol. Features Supports various streaming clients: VLC, ServeStream,

Nov 20, 2022

Heart 💜A high performance Lua web server with a simple, powerful API

Heart 💜A high performance Lua web server with a simple, powerful API

Heart 💜 A high performance Lua web server with a simple, powerful API. See the full documentation here. Overview Heart combines Go's fasthttp with Lu

Aug 31, 2022

A simple HTTP Server to share files over WiFi via Qr Code

A simple HTTP Server to share files over WiFi via Qr Code

go-fileserver A simple HTTP server to share files over WiFi via QRCode Installation You can download compressed version from

Oct 8, 2022

CasaOS - A simple, easy-to-use, elegant open-source home server system.

CasaOS - A simple, easy-to-use, elegant open-source home server system.

CasaOS - A simple, easy-to-use, elegant open-source home server system. CasaOS is an open-source home server system based on the Docker ecosystem and

Jan 8, 2023
A simple http-web server logging incoming requests to stdout with simple http-interface.
A simple http-web server logging incoming requests to stdout with simple http-interface.

http-cli-echo-logger A simple http-web server logging incoming requests to stdout with simple http-interface. Run locally go run ./cmd/main.go Default

Jul 18, 2022
KissLists is a very simple shared lists server
KissLists is a very simple shared lists server

KissLists is a very simple shared lists server. with mobile optimised design basic theme support websockets messages sqlite database but no

Nov 30, 2022
Go web server - A web server that can accept a GET request and serve a response.

go_web_server A web server that can accept a GET request and serve a response. Go is a great language for creating simple yet efficient web servers an

Jan 3, 2022
A simple Go HTTP server that proxies RPC provider requests

go-rpc-provider-proxy A simple Go HTTP server that proxies RPC provider requests.

Nov 21, 2021
Go server for handling WebSub, supporting custom implementations of content providers.

Go WebSub Server A Go implementation of a WebSub server. See examples/main.go for a basic example which uses boltdb and a simple publisher. Importing:

Dec 13, 2022
A basic server built using golang.
A basic server built using golang.

Go Server A genral purpose server built using golang Go Server is a genral purpose server meant to be simple to use and begginner friendly. Currently

Dec 19, 2021
A basic debugging server used when testing deployments

debug-server A basic debugging server used when testing deployments Development Start Server make Build This builds a Docker image with the commit has

Nov 1, 2021
a simple http server as replacement of python -m http.server

ser a simple http server as replacement of python -m http.server

Dec 5, 2022
OpenAPI specs for your Go server, generated at server runtime. No CLI, no code generation, and no HTTP

Overview "oas" is short for "OpenAPI Spec". Go package for generating OpenAPI docs at runtime. Non-features: No code generation. No CLI. No magic comm

Dec 3, 2021
A Language Server Protocol (LSP) server for Jsonnet

Jsonnet Language Server A Language Server Protocol (LSP) server for Jsonnet. Features Jump to definition self-support.mp4 dollar-support.mp4 Error/War

Dec 14, 2022