/go-dev

Dockerfile to build a go dev environment

MIT LicenseMIT

go-dev

Dockerfile to build a go dev environment

where you have your src folder create a dgo file with:

docker run --rm -it -v $PWD:/go -w /go aguspiza/go-dev go "$@"

Enable execution perms:

chmod +x dgo

And use it like this:

//get deps
./dgo get myproject
//build
./dgo build myproject
bin/myproject
//test
./dgo test myproject
//run
./dgo run src/myproject/main.go
./dgo version
./dgo env