pteirc

Results 2 comments of pteirc

```go type Group struct { name string getter Getter mainCache cache } // A GetterFunc implements Getter with a function. type GetterFunc func(key string) ([]byte, error) ``` 请问这个结构体中的getter是否可以直接用GetterFunc这个类型,然后直接把回调函数赋值到getter?不太明白把一个函数变成接口类型相比之下的优势