Add link from structs-->testing-and-benchmarking
This commit is contained in:
parent
ef81b2a729
commit
1ee3369f02
@ -53,7 +53,8 @@ func main() {
|
||||
|
||||
// If a struct type is only used for a single value, we don't
|
||||
// have to give it a name. The value can have an anonymous
|
||||
// struct type.
|
||||
// struct type. This technique is commonly used for
|
||||
// [table-driven tests](testing-and-benchmarking).
|
||||
dog := struct {
|
||||
name string
|
||||
isGood bool
|
||||
|
@ -1,2 +1,2 @@
|
||||
2676ffa99a3a14bc99332fc498e5d658c7988612
|
||||
EzGgwrfM-yD
|
||||
80344041b9268370bb6c73190afb1269e26f52fe
|
||||
ex1J3oieEeo
|
||||
|
5
public/structs
generated
5
public/structs
generated
@ -43,7 +43,7 @@ records.</p>
|
||||
|
||||
</td>
|
||||
<td class="code leading">
|
||||
<a href="https://go.dev/play/p/EzGgwrfM-yD"><img title="Run code" src="play.png" class="run" /></a><img title="Copy code" src="clipboard.png" class="copy" />
|
||||
<a href="https://go.dev/play/p/ex1J3oieEeo"><img title="Run code" src="play.png" class="run" /></a><img title="Copy code" src="clipboard.png" class="copy" />
|
||||
<pre class="chroma"><span class="kn">package</span> <span class="nx">main</span>
|
||||
</pre>
|
||||
</td>
|
||||
@ -229,7 +229,8 @@ pointers are automatically dereferenced.</p>
|
||||
<td class="docs">
|
||||
<p>If a struct type is only used for a single value, we don’t
|
||||
have to give it a name. The value can have an anonymous
|
||||
struct type.</p>
|
||||
struct type. This technique is commonly used for
|
||||
<a href="testing-and-benchmarking">table-driven tests</a>.</p>
|
||||
|
||||
</td>
|
||||
<td class="code">
|
||||
|
Loading…
x
Reference in New Issue
Block a user