(id string)
| 105 | var opNameRe = regexp.MustCompile(`(?i)(\S+)(?:\s+(\S.*))?`) |
| 106 | |
| 107 | func parseOpName(id string) (verb, url string) { |
| 108 | match := opNameRe.FindStringSubmatch(id) |
| 109 | if match == nil { |
| 110 | return "", "" |
| 111 | } |
| 112 | u := strings.TrimSpace(match[2]) |
| 113 | if !strings.HasPrefix(u, "/") { |
| 114 | u = "/" + u |
| 115 | } |
| 116 | return strings.ToUpper(match[1]), u |
| 117 | } |
| 118 | |
| 119 | type operationsFile struct { |
| 120 | ManualOps []*operation `yaml:"operations,omitempty"` |
no outgoing calls
no test coverage detected
searching dependent graphs…