From 7798376aa3f3ed1f9668218e707052801477a8c5 Mon Sep 17 00:00:00 2001
From: peterzhu1992
Date: Tue, 17 May 2022 01:25:01 -0400
Subject: [PATCH] Minor tweaks
Signed-off-by: peterzhu1992
---
examples/struct-embedding/struct-embedding.go | 4 ++--
examples/struct-embedding/struct-embedding.hash | 4 ++--
examples/struct-embedding/struct-embedding.sh | 2 +-
public/struct-embedding | 8 ++++----
4 files changed, 9 insertions(+), 9 deletions(-)
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.
|
@@ -45,7 +45,7 @@ files and folders into the application binary.
- 
+ 
package main
|
@@ -221,7 +221,7 @@ we see that a 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
|