-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65ce88f
commit 8da5179
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,8 @@ You can resolve multiple abstractions: | |
|
||
```go | ||
container.Make(func(m Mailer, s Shape) { | ||
// m is instance of Gmail | ||
// m is an instance of Gmail | ||
// s is an instance of Shape (like Rectangle) | ||
m.Send("[email protected]", "Hello!"); | ||
println(s.Area()) | ||
}) | ||
|