MCPcopy Create free account
hub / github.com/kataras/iris / SetSourceLine

Method SetSourceLine

core/router/route.go:239–243  ·  view source on GitHub ↗

SetSourceLine sets the route's source caller, useful for debugging. Returns the `Route` itself.

(fileName string, lineNumber int)

Source from the content-addressed store, hash-verified

237// SetSourceLine sets the route's source caller, useful for debugging.
238// Returns the `Route` itself.
239func (r *Route) SetSourceLine(fileName string, lineNumber int) *Route {
240 r.SourceFileName = fileName
241 r.SourceLineNumber = lineNumber
242 return r
243}
244
245// RestoreStatus will try to restore the status of this route instance, i.e if `SetStatusOffline` called on a "GET" route,
246// then this function will make this route available with "GET" HTTP Method.

Callers 1

HandleDirMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected