MCPcopy Create free account
hub / github.com/goadesign/goa / IsAbsolute

Method IsAbsolute

expr/http_endpoint.go:1106–1108  ·  view source on GitHub ↗

IsAbsolute returns true if the endpoint path should not be concatenated to the service and API base paths.

()

Source from the content-addressed store, hash-verified

1104// IsAbsolute returns true if the endpoint path should not be concatenated to
1105// the service and API base paths.
1106func (r *RouteExpr) IsAbsolute() bool {
1107 return strings.HasPrefix(r.Path, "//")
1108}
1109
1110// initAttr initializes the given mapped attribute with the given service
1111// attribute.

Callers 3

FullPathsMethod · 0.95
HasAbsoluteRoutesMethod · 0.80
hasAbsoluteRoutesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected