Golang structure and details of Precautions

All fields 1. The inner structure is continuous in

2. The structure is a single user-defined type, requires identical fields (name, number and type), and other types of conversion when

3. Structure redefined body type (corresponding alias), golang considered a new data type, but can be mutually transferred strong

4. struct on each field can be written on a tag, the tag may be obtained by reflection, that is, common usage scenarios serialization and deserialization.

Guess you like

Origin www.cnblogs.com/xiangxiaolin/p/12046672.html