Golang : Is conversion between different struct types possible?
To give a reference to OneOfOne’s answer, see the Conversions section of the spec. It states that A non-constant value x can be converted to type T in any of these cases: x is assignable to T. x‘s type and T have identical underlying types. x‘s type and T are unnamed pointer types and their … Read more