Gorilla Mux Regex
问题 I'm using the Mux package from the Golang Gorilla Toolkit for my routes. Consider the following routes: m.HandleFunc("/admin/install", installHandler).Methods("GET") m.HandleFunc("/admin/^((?!install).)*$", adminHandler).Methods("GET") m.HandleFunc("/admin", adminHandler).Methods("GET") The problem is with the regex of the middle route - it is not interpreted, so the route will not work! m.HandleFunc("/admin/{^((?!install).)*$}", adminHandler).Methods("GET") With the {} curly brackets doesn't