Files
moxa/_test/method16.go
2019-03-22 10:17:33 +01:00

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