cmd/doc: args are treated case-insensitive in some cases #49928
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
The following is one of the examples to reproduce.
What did you expect to see?
According to https://go.dev/blog/package-names, lowercase is recommended in Go,
so I think that the output should also follow it.
Thus I was expecting that the
go doc
will return an error(like not_found_error)or the output which converted to lowercase.
What did you see instead?
The following is the actual output.
The import path
import "Net/HttP/httpTEST"
is not a recommended style.Investigation
This problem seems to occur in cases where the passed arguments are passed directly to
build.Import
function.I don't know if this is the intended behavior, but it is because the
build.Import
function treats path as case-insensitive.I'm thinking of submitting a CL based on the discussion here.
The text was updated successfully, but these errors were encountered: