how to call a field method on golang?

后端 未结 0 581
被撕碎了的回忆
被撕碎了的回忆 2020-12-23 11:25

I have a lot of struct like this, with diff fields but have common field: fn func()

type a struct{
    // ....
    fn func()
}

what I want is

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