diff --git a/struct/struct3.go b/struct/struct3.go index b0054ec..f19478c 100644 --- a/struct/struct3.go +++ b/struct/struct3.go @@ -7,8 +7,8 @@ Name string } -func (*SampleStruct) hoge() bool { - fmt.Println("hoge") +func (p *SampleStruct) hoge() bool { + fmt.Println(p.Name) return true }