From 363849f9e3b859c4448b7c469125e2edb225d422 Mon Sep 17 00:00:00 2001 From: Hossein Naghdbishi <42994241+niyumard@users.noreply.github.com> Date: Wed, 19 Apr 2023 23:25:27 +0000 Subject: [PATCH] link embed directive (#469) --- examples/struct-embedding/struct-embedding.go | 2 +- examples/struct-embedding/struct-embedding.hash | 4 ++-- public/struct-embedding | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/struct-embedding/struct-embedding.go b/examples/struct-embedding/struct-embedding.go index 856e5de..d86709e 100644 --- a/examples/struct-embedding/struct-embedding.go +++ b/examples/struct-embedding/struct-embedding.go @@ -1,6 +1,6 @@ // Go supports _embedding_ of structs and interfaces // 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 // files and folders into the application binary. diff --git a/examples/struct-embedding/struct-embedding.hash b/examples/struct-embedding/struct-embedding.hash index 3882948..3450e96 100644 --- a/examples/struct-embedding/struct-embedding.hash +++ b/examples/struct-embedding/struct-embedding.hash @@ -1,2 +1,2 @@ -a246237126303fb110186ac2598bca15d36e8366 -TqMui3hJuX7 +7ac6d1889bfc68e8f3f931014c87e05db2ecda95 +-LOu1L0i2tR diff --git a/public/struct-embedding b/public/struct-embedding index c70b5b9..e10cd67 100644 --- a/public/struct-embedding +++ b/public/struct-embedding @@ -29,7 +29,7 @@

Go supports embedding of structs and interfaces 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 which is a go directive introduced in Go version 1.16+ to embed files and folders into the application binary.

@@ -45,7 +45,7 @@ files and folders into the application binary.

- +
package main