diff --git a/examples/struct-embedding/struct-embedding.go b/examples/struct-embedding/struct-embedding.go index 6f8efb0..856e5de 100644 --- a/examples/struct-embedding/struct-embedding.go +++ b/examples/struct-embedding/struct-embedding.go @@ -1,7 +1,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 -// a go directive introduced in go version 1.16 to embed +// 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. package main diff --git a/examples/struct-embedding/struct-embedding.hash b/examples/struct-embedding/struct-embedding.hash index cf11fd6..3882948 100644 --- a/examples/struct-embedding/struct-embedding.hash +++ b/examples/struct-embedding/struct-embedding.hash @@ -1,2 +1,2 @@ -8ec60ccaf4c5803bd65a776e05b458b008ae52a7 -4B33kwDJ3fm +a246237126303fb110186ac2598bca15d36e8366 +TqMui3hJuX7 diff --git a/examples/struct-embedding/struct-embedding.sh b/examples/struct-embedding/struct-embedding.sh index 316095e..02c90b3 100644 --- a/examples/struct-embedding/struct-embedding.sh +++ b/examples/struct-embedding/struct-embedding.sh @@ -1,4 +1,4 @@ -$ go run embedding.go +$ go run struct-embedding.go co={num: 1, str: some name} also num: 1 describe: base with num=1 diff --git a/public/struct-embedding b/public/struct-embedding index 90d034a..086bfdf 100644 --- a/public/struct-embedding +++ b/public/struct-embedding @@ -29,8 +29,8 @@
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
-a go directive introduced in go version 1.16 to embed
+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.
package main
container
now implements the
$ go run embedding.go +$ go run struct-embedding.go co={num: 1, str: some name} also num: 1 describe: base with num=1