Golang http mux change handler function
问题 I am fairly new to Go and have not been able to find any information on this, maybe it is just not possible at this time. I am trying to delete or replace a mux route (using http.NewServeMux, or gorilla's mux.Router). My end goal is to be able to enable/disable a route or set of routes without having to restart the program. I can probably accomplish this on a handler to handler basis and just return 404 if that feature is "disabled", but I would rather find a more general way to do this since