Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rcrowley committed Oct 4, 2013
1 parent a9d7735 commit f11f4a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

var (
contexts map[*http.Request]interface{}
mutex sync.Mutex
mutex sync.Mutex
)

// Context returns the request context as an interface{} given a pointer
Expand All @@ -23,7 +23,7 @@ func Context(r *http.Request) interface{} {
// any type with each request it handles.
type ContextHandler struct {
handler http.Handler
t reflect.Type
t reflect.Type
}

// WithContext wraps an http.Handler and associates a new context object of
Expand All @@ -33,7 +33,7 @@ type ContextHandler struct {
func WithContext(handler http.Handler, i interface{}) *ContextHandler {
return &ContextHandler{
handler: handler,
t: reflect.TypeOf(i),
t: reflect.TypeOf(i),
}
}

Expand Down

0 comments on commit f11f4a2

Please sign in to comment.