func (t *type) f() error { }
这里的(t *type)其实是类的成员的定义,type为struct类型, 写法很像扩展函数
(t *type)
可以在type类型实例中调用该方法 (type).f()