is it possible to share one method for two child struct in Golang?

后端 未结 0 1751
一向
一向 2021-02-01 14:22

I am new to Golang, and I feel stranded in the inheritance of Golang. I defined a struct and its two children like:

type Father struct{}
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题