Is it possible to force net.http.HandleFunc to compare a string by mask / regexp, for example, when you need to use a URL like / foo / [0-9] / bar or are there other better solutions?
1 answer
There is an excellent library http://www.gorillatoolkit.org/pkg/mux in which all this already exists. Well, if you really want to write a bicycle, its source is open and simple.
|