Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
I want to add examples for some methods of a package. What is best practice for doing that?
It is better to ask these kind of questions on the golang-dev mailing list or #contributing in Gophers Slack. See https://github.com/golang/go/wiki/Questions.
My personal opinion is that it matters how many lines there are in the CL, how complex the examples are and how closely related they are. For examples in different pakages I would start with separate CLs.