package mainimport ( "fmt")type Test struct {}func (t *Test) Gname() { fmt.Println("test")}func main() { var t *Test t.Gname()}//test