jjzjj

GetProfileParams

全部标签

go - 在 Golang 中将接口(interface)类型实现为函数类型

我创建了几种类型,包括接口(interface)://GetProfileHandlerFuncturnsafunctionwiththerightsignatureintoagetprofilehandlertypeGetProfileHandlerFuncfunc(GetProfileParams,interface{})middleware.Responder//Handleexecutingtherequestandreturningaresponsefunc(fnGetProfileHandlerFunc)Handle(paramsGetProfileParams,princ