Go url parameters mapping
问题 Is there a native way for inplace url parameters in native Go ? For Example, if I have a URL: http://localhost:8080/blob/123/test I want to use this URL as /blob/{id}/test . This is not a question about finding go libraries. I am starting with the basic question, does go itself provide a basic facility to do this natively. 回答1: There is no built in simple way to do this, however, it is not hard to do. This is how I do it, without adding a particular library. It is placed in a function so that