String returns a canonical RFC-4122 string representation of the UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
()
| 135 | // String returns a canonical RFC-4122 string representation of the UUID: |
| 136 | // xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. |
| 137 | func (u UUID) String() string { |
| 138 | buf := make([]byte, 36) |
| 139 | u.StringBytes(buf) |
| 140 | return string(buf) |
| 141 | } |
| 142 | |
| 143 | // StringBytes writes the result of String directly into a buffer, which must |
| 144 | // have a length of at least 36. |
no test coverage detected