golang中对象方法做为函数指针

裸函数做为指针不是什么新鲜事,其它的语言也是能够的,golang固然也能够,譬如git type FT func(int) func Fa(int){} func Test(FT){} Test(Fa) //pass function as parameter 可是像下面这样,对象实例的方法是否能够做为函数参数传递呢?github type A struct { // ... } fun
相关文章
相关标签/搜索