| 1 | package subsel |
|---|---|
| 2 | |
| 3 | import "fmt" |
| 4 | |
| 5 | type TestStructSubOther struct { |
| 6 | E string |
| 7 | F int |
| 8 | } |
| 9 | |
| 10 | type TestStructOther struct { |
| 11 | A string |
| 12 | B int |
| 13 | C TestStructSub |
| 14 | } |
| 15 | |
| 16 | func (ts TestStructOther) SayGood(word string) { |
| 17 | fmt.Printf("hello good %s", word) |
| 18 | } |
| 19 | |
| 20 | func (ts TestStructOther) SayGood2(word string) { |
| 21 | fmt.Printf("hello good %s", word) |
| 22 | ts.SayGood("") |
| 23 | } |
| 24 | func (ts TestStructOther) SayGoodXXBB(word string) { |
| 25 | fmt.Printf("hello good %s", word) |
| 26 | ts.SayGood("") |
| 27 | } |
| 28 |
Members