Hey there!
I'm looking to lint my Docker file with hadolint. They provide an already built Docker image that you can run with this command docker run --rm -i hadolint/hadolint < Dockerfile.
I couldn't figure out an easy way to do with the Go SDK.
More info on hadolint here https://github.com/hadolint/hadolint/tree/master/docker.
Much appreciated!