Go Concepts - Documentation: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 6: Line 6:
=Overview=
=Overview=


Go generates in-line documentation for symbols in packages.
Go generates in-line documentation for symbols in packages, via the <tt>go doc</tt> command.


=Reading Documentation=
=Reading Documentation=

Revision as of 00:48, 2 April 2016

Internal

Overview

Go generates in-line documentation for symbols in packages, via the go doc command.

Reading Documentation

Package

go doc <package>

Function

go doc <package> <function-name>

Example:

go doc fmt Println


Writing Documentation