Go Package fmt: Difference between revisions
Jump to navigation
Jump to search
Line 35: | Line 35: | ||
* <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 [[]]. | <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 04:28, 4 April 2016
External
Internal
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.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.