r", pages: 256, title: "Go 101",}
</code></pre>
<p></p>
<h3 class="tmd-header-3">
About Struct Value Assignments
</h3>
<p></p>
<div class="tmd-usual">
When a struct value is assigned to another struct value, the effect is the same as assigning each field one by one.
</div>
<pre class="tmd-code line-numbers">
<code class="language-go">func f() {
	book1 := Book{pages: 300}
	book2 := Book{"Go 101", "Tapir", 256}

	book2 = book1
	// The above line is equivalent to the
	// following lines.
	book2.title = book1.t