如何在Golang中生成Diffie-Hellman参数

Is there a Golang equivalent to the following openssl command?

openssl dhparam -out dh.pem 2048

I would like to be able to generate Diffie-Hellman parameters with golang and not need to invoke openssl.