You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
file.Any's unexported struct cannot be named 'any' — it shadows the predeclared identifier #650
Ruling 3 gives the unexported struct the interface's lowercase name. That yields regular, directory, and symbolicLink without incident — and any for file.Any, which does not work.
any is a predeclared identifier (the alias for interface{}). Declaring a type by that name shadows it for the whole file package, so every use of any as a type in the package silently changes meaning. That includes the resource constructors' own signatures — DiscoverAny(runtimeEnvironment *op.RuntimeEnvironment, value any) — which would stop compiling or, worse, compile with the wrong type.
anyResource — parallel to the resource base it embeds, and reads correctly beside regular/directory/symbolicLink.
unasserted — names what the variant means (a claim asserting existence without asserting kind) rather than what it is called publicly. Most descriptive, least parallel.
Whichever is chosen, ruling 3's phrasing needs a carve-out recorded in the plan: the lowercase rule yields to Go's predeclared identifiers.
This is the only variant affected — Regular, Directory, and SymbolicLink lowercase cleanly.
Activity