normalizeEtag() — fiber Function Reference
Architecture documentation for the normalizeEtag() function in helpers.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 942d4a38_51d0_4bac_db70_263103130342["normalizeEtag()"] bec0e401_e4cd_f765_6df3_a79059073e50["helpers.go"] 942d4a38_51d0_4bac_db70_263103130342 -->|defined in| bec0e401_e4cd_f765_6df3_a79059073e50 abcedd60_3b1b_1c7d_25a4_a75e57a0934f["matchEtag()"] abcedd60_3b1b_1c7d_25a4_a75e57a0934f -->|calls| 942d4a38_51d0_4bac_db70_263103130342 c6e944f5_10cc_2bef_5270_1346ec50dea0["matchEtagStrong()"] c6e944f5_10cc_2bef_5270_1346ec50dea0 -->|calls| 942d4a38_51d0_4bac_db70_263103130342 style 942d4a38_51d0_4bac_db70_263103130342 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
helpers.go lines 664–674
func normalizeEtag(t string) (value string, weak, ok bool) { //nolint:nonamedreturns // gocritic unnamedResult requires naming the parsed ETag components
weak = strings.HasPrefix(t, "W/")
if weak {
t = t[2:]
}
if len(t) < 2 || t[0] != '"' || t[len(t)-1] != '"' {
return "", weak, false
}
return t[1 : len(t)-1], weak, true
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does normalizeEtag() do?
normalizeEtag() is a function in the fiber codebase, defined in helpers.go.
Where is normalizeEtag() defined?
normalizeEtag() is defined in helpers.go at line 664.
What calls normalizeEtag()?
normalizeEtag() is called by 2 function(s): matchEtag, matchEtagStrong.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free