code: func ConstructMuxVar(name string, pattern string) string {
  	if pattern == "" {
  		return "{" + name + "}"
  	}
  
  	return "{" + name + ":" + pattern + "}"
  }
docs: // ConstructMuxVar constructs the mux var that is used in the gorilla/mux styled
  // path, example: {id}, {id:[0-9]+}.