Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pretty.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ func Fprintf(w io.Writer, format string, a ...interface{}) (n int, error error)
return fmt.Fprintf(w, format, wrap(a, false)...)
}

// Fprintln is a convenience wrapper for fmt.Fprintln.
//
// Calling Fprintln(w, x, y) is equivalent to
// fmt.Fprintln(w, Formatter(x), Formatter(y)), but each operand is
// formatted with "%# v".
func Fprintln(w io.Writer, a ...interface{}) (n int, error error) {
return fmt.Fprintln(w, wrap(a, true)...)
}

// Log is a convenience wrapper for log.Printf.
//
// Calling Log(x, y) is equivalent to
Expand Down