You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: topics/go/language/embedding/README.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,18 @@
1
1
## Embedding
2
2
3
-
Embedding types provides the final piece of sharing and reusing state and behavior between types. Through the use of inner type promotion, an inner type's fields and methods can be directly accessed by references of the outer type.
3
+
Embedding types provide the final piece of sharing and reusing state and behavior between types. Through the use of inner type promotion, an inner type's fields and methods can be directly accessed by references of the outer type.
4
4
5
5
## Notes
6
6
7
-
* Embedding types allows us to share state or behavior between types.
7
+
* Embedding types allow us to share state or behavior between types.
8
8
* The inner type never loses its identity.
9
9
* This is not inheritance.
10
10
* Through promotion, inner type fields and methods can be accessed through the outer type.
11
11
* The outer type can override the inner type's behavior.
0 commit comments