lass="content">
		

<h1 id="middleware-basic">Middleware (Basic)</h1>

<p>This example will show how to create basic logging middleware in Go.</p>

<p>A middleware simply takes a <code>http.HandlerFunc</code> as one of its parameters, wraps it and returns a new <code>http.HandlerFunc</code> for the server to call.</p>

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-9994791825937062"
     d