String returns a string whose contents are equal to s. In that sense, it is equivalent to string(s) but may be more efficient.
(s []byte)
| 71 | // String returns a string whose contents are equal to s. In that sense, it is |
| 72 | // equivalent to string(s) but may be more efficient. |
| 73 | func String(s []byte) string { |
| 74 | if a := Lookup(s); a != 0 { |
| 75 | return a.String() |
| 76 | } |
| 77 | return string(s) |
| 78 | } |