String returns a canonical RFC-4122 string representation of the UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
()
| 162 | // String returns a canonical RFC-4122 string representation of the UUID: |
| 163 | // xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. |
| 164 | func (u UUID) String() string { |
| 165 | buf := make([]byte, RFC4122StrSize) |
| 166 | u.StringBytes(buf) |
| 167 | return string(buf) |
| 168 | } |
| 169 | |
| 170 | // StringBytes writes the result of String directly into a buffer, which must |
| 171 | // have a length of at least 36. |
no test coverage detected