Printf is a wrapper for fmt.Printf that treats each argument as if it were passed with a default Formatter interface returned by NewFormatter. It returns the number of bytes written and any write error encountered. See NewFormatter for formatting details.
This function is shorthand for the following syntax:
fmt.Printf(format, spew.NewFormatter(a), spew.NewFormatter(b))
// Print! spew.Printf("ppui8: %v\n", ppui8) spew.Printf("circular: %v\n", c)
// Print! spew.Printf("ppui8: %v\n", ppui8) spew.Printf("circular: %v\n", c) // Output:
Printf is referenced in 15 repositoriesgithub.com/davecgh/go-spew
- 2 references in spew/example_test.go
- 2 references in src/github.com/davecgh/go-spew/spew/example_test.go