go fmt
This commit is contained in:
parent
8162ae22f7
commit
5ed4112930
1 changed files with 4 additions and 4 deletions
8
uuid.go
8
uuid.go
|
@ -93,17 +93,17 @@ func (uuid UUID) String() string {
|
||||||
// First nibble.
|
// First nibble.
|
||||||
nibble := c >> 4
|
nibble := c >> 4
|
||||||
if nibble <= 9 {
|
if nibble <= 9 {
|
||||||
s += string(nibble+'0')
|
s += string(nibble + '0')
|
||||||
} else {
|
} else {
|
||||||
s += string(nibble+'A'-10)
|
s += string(nibble + 'A' - 10)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Second nibble.
|
// Second nibble.
|
||||||
nibble = c & 0x0f
|
nibble = c & 0x0f
|
||||||
if nibble <= 9 {
|
if nibble <= 9 {
|
||||||
s += string(nibble+'0')
|
s += string(nibble + '0')
|
||||||
} else {
|
} else {
|
||||||
s += string(nibble+'A'-10)
|
s += string(nibble + 'A' - 10)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue