我有这个:
type ret = func(http.ResponseWriter, martini.Params, *http.Request);
func VerifyParam(paramName string, validators... func()) ret {
return func(res http.ResponseWriter, params martini.Params, req *http.Request) {
// ...
}
}
即使返回类型就在那里,我也必须声明返回类型太糟糕了,有没有办法不必重复返回类型声明?
米琪卡哇伊
MMTTMM
随时随地看视频慕课网APP
相关分类