Go Package fmt: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 9: Line 9:
=Functions=
=Functions=
==<tt>fmt.Printf()</tt>, <tt>fmt.Println()</tt>==
==<tt>fmt.Printf()</tt>, <tt>fmt.Println()</tt>==
{{Internal|Go_Printing_to_Stdout_and_Stderr#fmt.Printf.28.29|<tt>fmt.Printf()</tt>}}
{{Internal|Go_Printing_to_Stdout_and_Stderr#fmt_Functions|Printing to <tt>stdout</tt> and <tt>stderr</tt>}}


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

Revision as of 01:54, 23 August 2023

External

Internal

Functions

fmt.Printf(), fmt.Println()

Printing to stdout and stderr

fmt.Scanf(), fmt.Scanln()

Handling stdin in Go

fmt.Errorf()

Errorf formats according to a format specifier and returns the string as a value that satisfies error. For more on error handling see error handling.