MCPcopy
hub / github.com/gofiber/fiber / getGroupPath

Function getGroupPath

helpers.go:230–240  ·  view source on GitHub ↗
(prefix, path string)

Source from the content-addressed store, hash-verified

228}
229
230func getGroupPath(prefix, path string) string {
231 if path == "" {
232 return prefix
233 }
234
235 if path[0] != '/' {
236 path = "/" + path
237 }
238
239 return utils.TrimRight(prefix, '/') + path
240}
241
242// acceptsOffer determines if an offer matches a given specification.
243// It supports a trailing '*' wildcard and performs case-insensitive exact matching.

Callers 14

Test_Utils_getGroupPathFunction · 0.85
addPrefixToRouteMethod · 0.85
mountMethod · 0.85
mountMethod · 0.85
appendSubAppListsMethod · 0.85
RouteChainMethod · 0.85
UseMethod · 0.85
AddMethod · 0.85
GroupMethod · 0.85
RouteChainMethod · 0.85
registerPathMethod · 0.85

Calls

no outgoing calls

Tested by 2

Test_Utils_getGroupPathFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…