(comments []SwaggerComment, method, route string)
| 271 | } |
| 272 | |
| 273 | func findSwaggerCommentByMethodAndRoute(comments []SwaggerComment, method, route string) *SwaggerComment { |
| 274 | for _, c := range comments { |
| 275 | if c.method == method && c.router == route { |
| 276 | return &c |
| 277 | } |
| 278 | } |
| 279 | return nil |
| 280 | } |
| 281 | |
| 282 | var nonAlphanumericRegex = regexp.MustCompile(`[^a-zA-Z0-9-]+`) |
| 283 |
no outgoing calls
no test coverage detected