golang中對象方法做爲函數指針

裸函數做爲指針不是什麼新鮮事,其它的語言也是能夠的,golang固然也能夠,譬如git type FT func(int) func Fa(int){} func Test(FT){} Test(Fa) //pass function as parameter 可是像下面這樣,對象實例的方法是否能夠做爲函數參數傳遞呢?github type A struct { // ... } fun
相關文章
相關標籤/搜索