pack icon indicating copy to clipboard operation
pack copied to clipboard

Chore: Document packages with readmes

Open zmackie opened this issue 5 years ago • 11 comments

go packages should have some form of documentation to detail what the purpose of given package is for.

For example github.com/buildpacks/pack/internal/dist:

dist package provides utility classes and constants that adhere to the distribution spec: https://github.com/buildpacks/spec/blob/master/distribution.md

zmackie avatar Jan 13 '20 20:01 zmackie

@ameyer-pivotal I think this is what your meant by the project card. Feel free to edit if not.

zmackie avatar Jan 15 '20 21:01 zmackie

@Zanadar this issue was more in regards to documenting go code packages. I've updated the description with an example for better clarity. @ameyer-pivotal, feel free to provide additional clarification if needed.

jromero avatar Jan 18 '20 04:01 jromero

For context - is it best Go practice to have a readme in each directory? What should those Readmes look like?

dfreilich avatar Jul 10 '20 18:07 dfreilich

Or would this be more for go-docs, where at the top of a file in each package we do something like:

// Package foo manages bar.
// ...
package foo

dfreilich avatar Jul 10 '20 18:07 dfreilich

Hi @dfreilich , I would like to work on this issue. As per the latest comment, Is it okay to add description for packages at the top of file in each package?

vipinachar avatar Aug 11 '23 18:08 vipinachar

The information here could be helpful in this effort: https://go.dev/doc/comment

natalieparellano avatar Aug 14 '23 14:08 natalieparellano

@vipinachar so sorry for the delay in responding - Are you still interested in working on this issue?

microwavables avatar Mar 05 '24 16:03 microwavables