Skip to content

Commit

Permalink
change import path to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
guregu committed Aug 23, 2016
1 parent 0afa5bf commit 8d1d846
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion 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.

Expand Down
6 changes: 0 additions & 6 deletions handler_17.go
Expand Up @@ -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)

Expand Down

0 comments on commit 8d1d846

Please sign in to comment.