string Type — fiber Architecture
Architecture documentation for the string type/interface in path.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD fbd30887_ab47_bd8a_5e89_ebe533255c16["string"] bedec411_93e0_4024_219e_79649f60a9be["path.go"] fbd30887_ab47_bd8a_5e89_ebe533255c16 -->|defined in| bedec411_93e0_4024_219e_79649f60a9be style fbd30887_ab47_bd8a_5e89_ebe533255c16 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
path.go lines 38–54
type routeSegment struct {
// const information
Const string // constant part of the route
ParamName string // name of the parameter for access to it, for wildcards and plus parameters access iterators starting with 1 are added
ComparePart string // search part to find the end of the parameter
Constraints []*Constraint // Constraint type if segment is a parameter, if not it will be set to noConstraint by default
PartCount int // how often is the search part contained in the non-param segments? -> necessary for greedy search
Length int // length of the parameter for segment, when its 0 then the length is undetermined
// future TODO: add support for optional groups "/abc(/def)?"
// parameter information
IsParam bool // Truth value that indicates whether it is a parameter or a constant part
IsGreedy bool // indicates whether the parameter is greedy or not, is used with wildcard and plus
IsOptional bool // indicates whether the parameter is optional or not
// common information
IsLast bool // shows if the segment is the last one for the route
HasOptionalSlash bool // segment has the possibility of an optional slash
}
Defined In
Source
Frequently Asked Questions
What is the string type?
string is a type/interface in the fiber codebase, defined in path.go.
Where is string defined?
string is defined in path.go at line 38.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free