Skip to content

Commit

Permalink
Merge pull request #31 from cespare/sprint
Browse files Browse the repository at this point in the history
Add Sprint
  • Loading branch information
kr committed Mar 25, 2016
2 parents e6ac2fc + b19c9ba commit add1dbc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pretty.go
Expand Up @@ -81,6 +81,15 @@ func Println(a ...interface{}) (n int, errno error) {
return fmt.Println(wrap(a, true)...)
}

// Sprint is a convenience wrapper for fmt.Sprintf.
//
// Calling Sprint(x, y) is equivalent to
// fmt.Sprint(Formatter(x), Formatter(y)), but each operand is
// formatted with "%# v".
func Sprint(a ...interface{}) string {
return fmt.Sprint(wrap(a, true)...)
}

// Sprintf is a convenience wrapper for fmt.Sprintf.
//
// Calling Sprintf(f, x, y) is equivalent to
Expand Down

0 comments on commit add1dbc

Please sign in to comment.