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

https://github.com/smithlabs/go-example-servers

A collection of ready-to-use pre-compiled Golang web server examples such as "Hello, World!".
https://github.com/smithlabs/go-example-servers

go golang golang-examples golang-server webserver

Last synced: 2 months ago
JSON representation

A collection of ready-to-use pre-compiled Golang web server examples such as "Hello, World!".

Awesome Lists containing this project

README

        

# Go Example Servers

A collection of servers built using Golang that are ready to deploy to cloud resources.

- Hello World - An HTTP web server that prints "Hello World!" to the user accessing the web page.

# Usage

Each folder within this repository contains both the pre-built binary and the code to optionally build the binary.

#### Example: Hello World HTTP server

Build
```sh
git clone https://github.com/smithlabs/go-example-servers.git
cd go-example-servers/01-hello-world/
go build
```
Run
```sh
./main
```
Access
http://localhost:8080

#### Example 2: Hello World HTTP server with versions
# go-example-servers