A Nix Flake to package a hello world GO application providing a development shell and minimal Docker image
$ nix develop$ go run main.go$ go mod init example.com/hello
$ go mod tidy$ go build -o hello
$ ./hello$ nix build
$ ./result/bin/hello$ nix build .#dockerImage
$ docker load < result
$ docker run -p 8080:8080 hello:latest