golang example app
$ go get github.com/ushios/go-example
$ go-example -o
Hello, World
option | |
---|---|
o | output Hello, World |
p | make panic |
s | run http server on localhost:8080 (using env:GO_SAMPLE_HTTP_PORT if you want to change the port) |
$ docker run -p 80:8080 ushios/go-example
Checking localhost
$ curl localhost
Hello, World
$ docker build -t go-example .
$ docker run -it --rm --name run-go-example -p 80:8080 go-example