| 5 | ) |
| 6 | |
| 7 | type FooInterface interface { |
| 8 | bar() // method receiver is value then interface is value , method receiver is pointer then interface is pointer |
| 9 | } |
| 10 | |
| 11 | //Won't throw a compile error. Because the bar method belongs to Foo struct. |
| 12 | type Foo1 struct { |