This will help you to run basic go program without any setup problem
You can simply grab this docker file into your project directory
and then you can run build command once
docker build -t my-go-proj .
and then as you want to run the code you can run the following command
docker run --rm -it --volume $(pwd):/app --name project-container my-go-proj
docker
must be installed.