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.
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/<path:path>') def es_status(path): resp = Response( response='{"version":{"number":"6.0.0"}}', status=200, content_type='application/json; charset=utf-8') return resp Any help is appreciated.