在 go 中,有一个“前缀”可以放在一个函数上。这有什么用?这有什么用例?
例子:
type a struct {
Thing string
}
func (something a) b() {
fmt.Println(something.Thing)
温温酱
PIPIONE
相关分类