go/types: NewParam/NewField doc missing #22747
Labels
Documentation
Issues describing a change to documentation.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
It's unclear what the package param is for, or if it's required (it seems it isn't, from my testing, if all you're doing is calling
String()
on the constructed types), or that the name must not be empty for anonymous fields.It would be helpful to point out in the NewField doc that, for anonymous fields, you can get the name to use from the type argument, where that type is either a Named, Basic, or Pointer.
Consider this also a request to document all undocumented, exported declarations in go/types:
The text was updated successfully, but these errors were encountered: