documentation for golang credoc parses a go file for top comments, types, functions and methods. The file description is expected to consist of comments before the package statement.
Descriptions of types, functions and methods are expected to be comments after the definition.
compile file add alias in .bashrc
detailed description can be found in credoc.md