refactored go code using gorilla/mux