Create a factory of structs with reflect

Can you show what you are trying to achieve ? You can also check the code here https://github.com/golang/go/issues/460 which shows a known issue.