有人可以帮助我澄清在哪些情况下最好使用函数作为结构体字段以及何时作为结构体方法?
methods struct function go
function ×1
go ×1
methods ×1
struct ×1