title: Catch-All URL in golang
body: <p>I am planning to rewrite my flask application in golang. I am trying to find a good example for a catch all route in golang similar to my flask application below.</p>
  
  <pre><code>from flask import Flask, request, Response
  app = Flask(__name__)
  
  @app.route('/')
  def hello_world():
    return 'Hello World! I am running on port ' + str(port)
  
  
  @app.route('/health')
  def health():
    return 'OK'
  
  @app.route('/es', defaults={'path': ''})
  @app.route('/es/&lt;path:path&gt;')
  def es_status(path):
    resp = Response(
         response='{"version":{"number":"6.0.0"}}',
         status=200,
         content_type='application/json; charset=utf-8')
    return resp
  </code></pre>
  
  <p>Any help is appreciated.</p>