ch7/ch7-12 #190
ch7/ch7-12
#190
Replies: 1 comment 3 replies
-
We cannot assume that an arbitrary io.Writer w also has the WriteString method. But we can define a new interface that has just this method and use a type assertion to test whether the dynamic type of w satisfies this new interface. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ch7/ch7-12
中文版
https://gopl-zh.github.io/ch7/ch7-12.html
Beta Was this translation helpful? Give feedback.
All reactions