Skip to content

Instantly share code, notes, and snippets.

@michaeljs1990
Created June 10, 2014 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaeljs1990/d2a3df93b35eea52ddd1 to your computer and use it in GitHub Desktop.
Save michaeljs1990/d2a3df93b35eea52ddd1 to your computer and use it in GitHub Desktop.
Go Example
type Handler struct {
pat string
http.Handler
}
@michaeljs1990
Copy link
Author

More on how the http.Handler works in this struct look at http://golang.org/doc/effective_go.html#embedding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment