Go Package fmt: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 9: Line 9:
=<tt>fmt</tt> Package Functions=
=<tt>fmt</tt> Package Functions=


==<tt>fmt.Println()</tt>==
* <tt>[https://golang.org/pkg/fmt/#Printlnt fmt.Println()]</tt>


==<tt>fmt.Printf()</tt>==
==<tt>fmt.Printf()</tt>==

Revision as of 04:22, 4 April 2016

External

Internal

fmt Package Functions

fmt.Printf()

Prints according to a format specifier. Format specifier documentation https://golang.org/pkg/fmt

Pointers

fmt.Printf("%p\n", sPtr)

Ints

fmt.Printf("%d\n",i)

fmt.Scanf()