This commit is contained in:
2024-08-01 23:40:06 +08:00
commit 1adca2ffe6
17 changed files with 469 additions and 0 deletions

26
demo/test01.go Normal file
View File

@@ -0,0 +1,26 @@
package main
import "fmt"
type a interface {
}
type b interface {
}
type Stu struct {
}
func (s Stu) a() {
fmt.Println("aa")
}
func (s Stu) b() {
fmt.Println("bbb")
}
func main() {
var s Stu
var a = s
var b = s
a.b()
b.a()
}