uri.go — fiber Source File
Architecture documentation for uri.go, a go file in the fiber codebase.
Entity Profile
Relationship Graph
Source Code
package binder
// URIBinding is the binder implementation for populating values from route parameters.
type URIBinding struct{}
// Name returns the binding name.
func (*URIBinding) Name() string {
return "uri"
}
// Bind parses the URI parameters and returns the result.
func (b *URIBinding) Bind(params []string, paramsFunc func(key string, defaultValue ...string) string, out any) error {
data := make(map[string][]string, len(params))
for _, param := range params {
data[param] = append(data[param], paramsFunc(param))
}
return parse(b.Name(), out, data)
}
// Reset resets URIBinding binder.
func (*URIBinding) Reset() {
// Nothing to reset
}
Types
Source
Frequently Asked Questions
What does uri.go do?
uri.go is a source file in the fiber codebase, written in go.
Where is uri.go in the architecture?
uri.go is located at binder/uri.go (directory: binder).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free