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!".
- Host: GitHub
- URL: https://github.com/smithlabs/go-example-servers
- Owner: smithlabs
- Created: 2020-11-03T01:37:59.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-10T02:26:50.000Z (over 4 years ago)
- Last Synced: 2024-11-19T09:07:49.278Z (6 months ago)
- Topics: go, golang, golang-examples, golang-server, webserver
- Language: Go
- Homepage:
- Size: 3.64 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 serverBuild
```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