Files
yaegi/_test/method16.go
T

21 lines
259 B
Go

package main
import (
"fmt"
)
type Cheese struct {
property string
}
func (t *Cheese) Hello(param string) {
fmt.Printf("%+v %+v", t, param)
}
func main() {
(*Cheese).Hello(&Cheese{property: "value"}, "param")
}
// Output:
// &{Xproperty:value} param