Go Package fmt: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 14: Line 14:


Prints according to a format specifier. Format specifier documentation https://golang.org/pkg/fmt
Prints according to a format specifier. Format specifier documentation https://golang.org/pkg/fmt
===Printing Pointer Values===
<pre>
fmt.Printf("%p\n", s)
</pre>


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

Revision as of 19:32, 2 April 2016

External

Internal

fmt Package Functions

fmt.Println()

fmt.Printf()

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

Printing Pointer Values

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

fmt.Scanf()