title: Golang equivalent of java servlet filter
body: <p>Does the Go language have an equivalent of the java servlet filter, such that you can have a single function of code that automatically gets added to all incoming http requests?  I'm also curious if it's possible to apply the filter to a URL pattern, ie, a subset of incoming requests based on URI.  </p>
  
  <p>What is the Golang way of doing this?</p>