Skip to content

dockersamples/helloworld-go-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Simple Hello World Go Demo

Example used to demonstrate docker init CLI for a simple Hello World Go Program

Run the application

You can simply use make run command or do it yourself with go run main.go

Those commands will start a http server listening on port 8080 and if your request http://localhost:8080 you'll see the following output:

❯ curl http://localhost:8080

          ##         .
    ## ## ##        ==
 ## ## ## ## ##    ===
/"""""""""""""""""\___/ ===
{                       /  ===-
\______ O           __/
 \    \         __/
  \____\_______/


Hello from Go!

Releases

No releases published

Packages

No packages published

Languages

  • Go 80.8%
  • Makefile 19.2%