MCPcopy Index your code
hub / github.com/kataras/iris / parseMethod

Function parseMethod

mvc/controller_method_parser.go:125–137  ·  view source on GitHub ↗
(macros *macro.Macros, fn reflect.Method, skipper func(string) bool, wordFunc CustomPathWordFunc)

Source from the content-addressed store, hash-verified

123}
124
125func 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
139func methodTitle(httpMethod string) string {
140 httpMethodFuncName := strings.Title(strings.ToLower(httpMethod))

Callers 1

parseMethodMethod · 0.85

Calls 2

parseMethod · 0.95
newMethodLexerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…