From 8d1d846628fba54e918064a0b82bdfbf5898c7a6 Mon Sep 17 00:00:00 2001 From: Greg Date: Wed, 24 Aug 2016 05:38:37 +0900 Subject: [PATCH] change import path to v2 --- README.md | 2 +- handler_17.go | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index 3ffb7c0..2bd3fea 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ ## kami [![GoDoc](https://godoc.org/github.com/guregu/kami?status.svg)](https://godoc.org/github.com/guregu/kami) [![CircleCI](https://circleci.com/gh/guregu/kami.svg?style=svg)](https://circleci.com/gh/guregu/kami) -`import "github.com/guregu/kami"` [or](http://gopkg.in) `import "gopkg.in/guregu/kami.v1"` +`import "github.com/guregu/kami"` [or](http://gopkg.in) `import "gopkg.in/guregu/kami.v2"` kami (神) is a tiny web framework using [context](https://blog.golang.org/context) for request context and [httptreemux](https://github.com/dimfeld/httptreemux) for routing. It includes a simple system for running hierarchical middleware before and after requests, in addition to log and panic hooks. Graceful restart via einhorn is also supported. diff --git a/handler_17.go b/handler_17.go index 679276c..4cde993 100644 --- a/handler_17.go +++ b/handler_17.go @@ -30,12 +30,6 @@ type OldContextHandler interface { ServeHTTPContext(netcontext.Context, http.ResponseWriter, *http.Request) } -func old2new(old OldContextHandler) ContextHandler { - return HandlerFunc(func(ctx context.Context, w http.ResponseWriter, r *http.Request) { - old.ServeHTTPContext(ctx, w, r) - }) -} - // HandlerFunc is like http.HandlerFunc with context. type HandlerFunc func(context.Context, http.ResponseWriter, *http.Request)