mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-22 10:33:13 +00:00
The comment claimed bindings were collected as the body was walked so that a registration only saw definitions above it. That is the single-pass design this started as. The code does two passes - one to collect, one to report - and a registration therefore sees every binding in the function. That is the point rather than an accident: a `.Use` written below a route is still part of the chain, because the chain is assembled before anything is served. The price is that a name reused for two different things in one function resolves to the last assignment, which the comment now says instead of promising an ordering the code does not keep.