アリスのミドルウェアとして使用されているのを見たように、ネグローニのミドルウェアとしてゴリラ を使用することは可能ですか? context.ClearHandler()何かのようなもの:
n.Use(context.ClearHandler())
現時点ではcontext.Clear(r)、すべての応答後に電話をかけていますが、片付けが自動的に処理されることを望みます。現在、次のエラーが発生しています。
cannot use context.ClearHandler() (type http.Handler) as type negroni.Handler in argument to n.Use:
http.Handler does not implement negroni.Handler (wrong type for ServeHTTP method)
have ServeHTTP(http.ResponseWriter, *http.Request)
want ServeHTTP(http.ResponseWriter, *http.Request, http.HandlerFunc)
しかし、エラーメッセージが何を伝えているのかわかりません。