/go-http-hello-world

A simple HTTP "Hello World" server in Go

Primary LanguageGoMIT LicenseMIT

Go HTTP Hello World

A simple HTTP "Hello World" server in Go.

Usage

Locally

Just run the following to clone, build, and start the server.

git clone https://github.com/geetarista/go-http-hello-world.git
cd go-http-hello-world/hello_world
go build hello_world.go
./hello_world

Then just curl the path and you'll see the message. You can visit it multiple times and increment the count.

curl http://localhost/

If the server immediately stops, you might need to change the port constant in hello_world.go.

Google App Engine

The app is set up on Google App Engine. All you have to do is just visit http://gohttphelloworld.appspot.com/.

License

MIT. See LICENSE