code: func prettyGorillaMuxPath(s string) string {
  	// Stateful parser that removes regular expressions from gorilla
  	// routes. It correctly handles balanced bracket pairs.
  
  	var output string
  	var label string
  	var level int
  
  start:
  	if s[0] == '{' {
  		s = s[1:]
  		level++
  		goto capture
  	}
  
  	output += string(s[0])
  	s = s[1:]
  
  	goto end
  capture:
  	switch s[0] {
  	case '{':
  		level++
  	case '}':
  		level--
  
  		if level == 0 {
  			s = s[1:]
  			goto label
  		}
  	case ':':
  		s = s[1:]
  		goto skip
  	default:
  		label += string(s[0])
  	}
  	s = s[1:]
  	goto capture
  skip:
  	switch s[0] {
  	case '{':
  		level++
  	case '}':
  		level--
  	}
  	s = s[1:]
  
  	if level == 0 {
  		goto label
  	}
  
  	goto skip
  label:
  	if label != "" {
  		output += "<" + label + ">"
  		label = ""
  	}
  end:
  	if s != "" {
  		goto start
  	}
  
  	return output
  
  }
docs: // prettyGorillaMuxPath removes the regular expressions from a gorilla/mux
  // route string, making it suitable for documentation.