Is it possible to create variable with type from string?
Example: I have two types:
type FirstType struct { ... } type SecondType stru
This is not possible. Go does not provide functionality to create variables of types that are not known statically. The type of a variable is always known statically. Consider using interfaces instead.