I am using the go/importer package to get an instance of go/types.Struct:
pkg, _ := importer.Default().Import("some/package")
structType := pkg.Scope().Lookup("StructName").Type()
I would like to convert this type into a reflect.Type so that I can instantiate a new instance. Is this possible to do? Is there a way to go from a package name / struct name into a new instance (assuming the code executes in a Go environment with source and GOPATH set properly)?