Go Package fmt: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 8: | Line 8: | ||
=Functions= | =Functions= | ||
==<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.Printf.28.29|<tt>fmt.Printf()</tt>}} | ||
==<tt>fmt.Scanf()</tt> | ==<tt>fmt.Scanf()</tt>, <tt>fmt.Scanln()</tt>== | ||
{{Internal|Handling_stdin_in_Go#Handling_stdin_with_fmt_Functions|Handling <tt>stdin</tt> in Go}} | |||
==<tt>fmt.Errorf()</tt>== | ==<tt>fmt.Errorf()</tt>== | ||
* <tt>[https://golang.org/pkg/fmt/#Errorf fmt.Errorf()]</tt> | * <tt>[https://golang.org/pkg/fmt/#Errorf fmt.Errorf()]</tt> | ||
<tt>Errorf</tt> formats according to a format specifier and returns the string as a value that satisfies <tt>error</tt>. For more on error handling see [[Go_Concepts_-_Error_Handling#Creating_Custom_error_Instances|error handling]]. | <tt>Errorf</tt> formats according to a format specifier and returns the string as a value that satisfies <tt>error</tt>. For more on error handling see [[Go_Concepts_-_Error_Handling#Creating_Custom_error_Instances|error handling]]. |
Revision as of 01:52, 23 August 2023
External
Internal
Functions
fmt.Printf(), fmt.Println()
fmt.Scanf(), fmt.Scanln()
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.