Sign inSign up

uzyexe/go-sample

By uzyexe

Updated about 10 years ago
Archived

go-sample

Image
0

1.3K

uzyexe/go-sample repository overview

ushios/go-sample

golang sample app

Installation

$ go get github.com/ushios/go-sample

Samples

$ go-sample -o
Hello, World

Options

option
ooutput Hello, World
pmake panic
srun http server on localhost:8080 (using env:GO_SAMPLE_HTTP_PORT if you want to change the port)

Run on Docker

ushios/go-sample@docker

$ docker run -p 80:8080 ushios/go-sample

Checking localhost

$ curl localhost
Hello, World
local
$ docker build -t go-sample .
$ docker run -it --rm --name run-go-sample -p 80:8080 go-sample

Tag summary

Content type

Image

Digest

Size

244.6 MB

Last updated

about 10 years ago

docker pull uzyexe/go-sample