-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Open
Labels
NeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.pkgsitepkgsite/dochtmlIssues related to package documentation in pkgsiteIssues related to package documentation in pkgsite
Milestone
Description
An example may depend on an init function. When creating a playable example (standalone program) from an example, we currently do not include init functions, so such examples won't run correctly.
Example: https://pkg.go.dev/gonum.org/v1/gonum/graph/community#example-Profile-Multiplex
Challenges:
- We only want to include the init function if it affects the example, so we have to walk its body to check.
- A relevant init function can be in any file in the test package, and we only examine one file at a time at present.
Metadata
Metadata
Assignees
Labels
NeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.pkgsitepkgsite/dochtmlIssues related to package documentation in pkgsiteIssues related to package documentation in pkgsite