link embed directive (#469)
This commit is contained in:
parent
0a1da7e32d
commit
363849f9e3
@ -1,6 +1,6 @@
|
|||||||
// Go supports _embedding_ of structs and interfaces
|
// Go supports _embedding_ of structs and interfaces
|
||||||
// to express a more seamless _composition_ of types.
|
// to express a more seamless _composition_ of types.
|
||||||
// This is not to be confused with `//go:embed` which is
|
// This is not to be confused with [`//go:embed`](embed-directive) which is
|
||||||
// a go directive introduced in Go version 1.16+ to embed
|
// a go directive introduced in Go version 1.16+ to embed
|
||||||
// files and folders into the application binary.
|
// files and folders into the application binary.
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
a246237126303fb110186ac2598bca15d36e8366
|
7ac6d1889bfc68e8f3f931014c87e05db2ecda95
|
||||||
TqMui3hJuX7
|
-LOu1L0i2tR
|
||||||
|
4
public/struct-embedding
generated
4
public/struct-embedding
generated
@ -29,7 +29,7 @@
|
|||||||
<td class="docs">
|
<td class="docs">
|
||||||
<p>Go supports <em>embedding</em> of structs and interfaces
|
<p>Go supports <em>embedding</em> of structs and interfaces
|
||||||
to express a more seamless <em>composition</em> of types.
|
to express a more seamless <em>composition</em> of types.
|
||||||
This is not to be confused with <code>//go:embed</code> which is
|
This is not to be confused with <a href="embed-directive"><code>//go:embed</code></a> which is
|
||||||
a go directive introduced in Go version 1.16+ to embed
|
a go directive introduced in Go version 1.16+ to embed
|
||||||
files and folders into the application binary.</p>
|
files and folders into the application binary.</p>
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ files and folders into the application binary.</p>
|
|||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td class="code leading">
|
<td class="code leading">
|
||||||
<a href="https://go.dev/play/p/TqMui3hJuX7"><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/-LOu1L0i2tR"><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 class="chroma"><span class="kn">package</span> <span class="nx">main</span>
|
||||||
</pre>
|
</pre>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user