<div class="tmd-doc">
<h1 class="tmd-header-1">
Structs in Go
</h1>
<p></p>
<div class="tmd-usual">
Same as C, Go also supports struct types. This article will introduce the basic knowledge of struct types and values in Go.
</div>
<p></p>
<h3 class="tmd-header-3">
Struct Types and Struct Type Literals
</h3>
<p></p>
<div class="tmd-usual">
Each unnamed struct type literal starts with a <code class="tmd-code-span">struct</code> keyword which is followed by a sequence of field definitions enclosed in a <code c