(macros *macro.Macros, fn reflect.Method, skipper func(string) bool, wordFunc CustomPathWordFunc)
| 123 | } |
| 124 | |
| 125 | func parseMethod(macros *macro.Macros, fn reflect.Method, skipper func(string) bool, wordFunc CustomPathWordFunc) (method, path string, err error) { |
| 126 | if skipper(fn.Name) { |
| 127 | return "", "", errSkip |
| 128 | } |
| 129 | |
| 130 | p := &methodParser{ |
| 131 | fn: fn, |
| 132 | lexer: newMethodLexer(fn.Name), |
| 133 | macros: macros, |
| 134 | customPathWordFunc: wordFunc, |
| 135 | } |
| 136 | return p.parse() |
| 137 | } |
| 138 | |
| 139 | func methodTitle(httpMethod string) string { |
| 140 | httpMethodFuncName := strings.Title(strings.ToLower(httpMethod)) |
no test coverage detected
searching dependent graphs…