Mux – A lightweight, fast HTTP request router for Go
What&#x27;s the use case for all these routing libraries? Why not write a few lines of procedural code? It&#x27;s a natural encoding of the routes &quot;trie&quot;.<p><pre><code>     @methods(&#x27;POST&#x27;)
     def set_int(request):
         x = pop_int_component(request)
         no_more_components(request)
         do_set_the_int(x)
         return Ok

     def myapp(request):
         x = pop_id_component(request)
         if x == &#x27;set_int&#x27;:
             return set_int(request)
         else:
             return NotFound
</code></pre>
No type system hacks, extremely modular and simple to understand. Exceptions can replace basically all the boilerplate. The only drawback being there&#x27;s no URL generation, but it&#x27;s not like most sites have so many URLs that writing this by hand (directly in HTML templates or as &quot;inverse functions&quot;) would be unmaintainable.