Sign inSign up

ushios/go-example

By ushios

•Updated about 10 years ago

example for go

Image
0

1.6K

ushios/go-example repository overview

⁠ushios/go-example

golang example app

⁠Installation

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

⁠Samples

$ go-example -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-example@docker⁠

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

Checking localhost

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

run in https://goexample.arukascloud.io⁠

Tag summary

Content type

Image

Digest

Size

247.2 MB

Last updated

about 10 years ago

docker pull ushios/go-example