GoRouteGroupScope::Scopes
The route-group state at one point in a file: the assignment-group table and the stack of closure groups still open at the current brace depth.
Instance methods
Assignment groups that add no path segment (authV1 := apiV1.Group("/"),
clientAuth := g.Group("")): their prefix is their parent's, so a
prefix match cannot tell their routes from the parent's own.
base extended by one path segment. An unresolvable base stays
unresolvable — a literal segment under an unknown parent is still
unknown.
Assignment group variable -> each variable it is derived from, with
the 1-based row of that assignment (app := clientAuth.Group("/app")).
A name assigned in several functions keeps every assignment.
Resolve a receiver token: a tracked group variable, the innermost open closure group, or the global scope.