你好
输入
type Foo struct {
a int
}
type (
Baz1 struct {
aa int
}
Baz2 struct {
b string
}
)
输出
func ( s * Foo ) Hello () {
fmt . Println ( "hello world" )
}
func ( s * Baz1 ) Hello () {
fmt . Println ( "hello world" )
}
func ( s * Baz2 ) Hello () {
fmt . Println ( "hello world" )
}
## Generate
`` `sh
go build main
go generate