Skip to content

go/doc: limit factory functions to only ones starting with New #28006

@zigo101

Description

@zigo101

Please answer these questions before submitting your issue. Thanks!

@rsc suggest to open a new issue, so this one.

What version of Go are you using (go version)?

go version go1.11.1 linux/amd64

Does this issue reproduce with the latest release?

yes

What did you do?

Open https://golang.org/pkg/net/http/, and search the Post and Get functions.

What did you expect to see?

The two functions should be listed at the beginning part, package-level functions zone, of the doc.

What did you see instead?

The two functions are listed under the type Response zone as constructors, which is undesired.
Maybe we should limit constructor functions to the ones start with "New".

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions