func UserAgentString() string {
	return fmt.Sprintf(UserAgent, VersionString(), runtime.Version())
}
Generate a UserAgent string
package terraform
import (
	"fmt"
	"runtime"
)
const UserAgent = "Terraform %s (%s)"