x/tools/internal/gocommand: documentation doesn't state what Run{,Piped,Raw} do and what they returns #39333
Labels
Documentation
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
There are 3 exported identifiers with the word "Run" in package
golang.org/x/tools/internal/gocommand
. None of them say what the identifiers do and what they return. Each one says "it's like this other Run variant". This makes it hard to know how to use the API ofgocommand
package.Documentation for
Invocation.runRaw
isn't readily visible because it's an unexported identifier:It has named return values that help.
The
Runner
type is documented as follows:Perhaps that should be made more visible on the methods, and their
*bytes.Buffer
anderror
results can be given names likestdout
,stderr
to help clarify what's what./cc @heschik
The text was updated successfully, but these errors were encountered: