[go-nuts] Re: interface question

2018-03-02 Thread Tamás Gulácsi
Sorry, that only lists the defined interfaces.

As there's no explicit interface "implements" declaration, it is only 
checked at compile time.

For example, guru 
(https://docs.google.com/document/d/1_Y9xCEMj5S-7rv2ooHpZNH15JgRT5iM742gJkw5LtmQ/view#heading=h.f6hyappclfor)
 
can help.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: interface question

2018-03-02 Thread Tamás Gulácsi


> How can i get a list about which interface is implemented by this struct 
> methods?  (Because in Go there is no explicit interface declaration.)
>
> for example : io.Closer etc.
>

Every struct that has all the methods exactly as that interface defines - 
for io.Closer, a "Close() error" is enough.

But, here is a compilation: 
http://sweetohm.net/article/go-interfaces.en.html

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.