go-dhparam is a pure Golang implementation of the openssl dhparam generator no requiring any CGO bindings.
go-dhparam
openssl dhparam