* 伊藤和也 [190123 00:27]:
> I found the explanation "All types implement the empty interface".
> https://golang.org/ref/spec#Interface_types
> So an empty interface also implements an empty interface? and again the
> empty interface implements an empty interface and the empty inter...
> What I i
First of all let's not confuse Go's Interfaces with Java's class
inheritance.
Read again the definition from the link you sent:
"An interface type specifies a method set called its interface. A variable
of interface type can store a value of any type with a method set that is
any superset of the
On Wed, Jan 23, 2019 at 6:27 AM 伊藤和也 wrote:
> So an empty interface also implements an empty interface?
Interfaces do not implement anything. Instances of non-interfaces types do.
--
-j
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsu
I found the explanation "All types implement the empty interface".
https://golang.org/ref/spec#Interface_types
So an empty interface also implements an empty interface? and again the
empty interface implements an empty interface and the empty inter...
What I imagine is like this below.