Go Package fmt: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 14: Line 14:
{{Internal|Handling_stdin_in_Go#Handling_stdin_with_fmt_Functions|Handling <tt>stdin</tt> in Go}}
{{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>
{{Internal|Go_Language_Error_Handling#Wrapping_Errors|Error Handling &#124; Wrapping Errors}}
 
<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_Language_Error_Handling#Creating_Custom_error_Instances|error handling]].

Revision as of 19:37, 6 September 2023