Go Package fmt

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

fmt Package 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 [[]].