Skip to content

Commit

Permalink
style: format code with gofmt and gofumpt (#145)
Browse files Browse the repository at this point in the history
Format code with gofmt and gofumpt

This commit fixes the style issues introduced in 3d4bb9f according to the output
from Go fmt and Gofumpt.

Details: https://app.deepsource.com/gh/jaswdr/faker/transform/fe2672b4-8ead-4c5b-a3b7-7ba9cd3b2f31/

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
  • Loading branch information
deepsource-autofix[bot] authored Jul 13, 2023
1 parent 3d4bb9f commit 1eae534
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uuid.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type UUID struct {
func (UUID) V4() (uuid string) {
var uiq [16]byte
io.ReadFull(rand.Reader, uiq[:])
uiq[6] = (uiq[6] & 0x0f) | 0x40 // Version 4
uiq[8] = (uiq[8] & 0x3f) | 0x80 // Variant RFC4122
uiq[6] = (uiq[6] & 0x0f) | 0x40 // Version 4
uiq[8] = (uiq[8] & 0x3f) | 0x80 // Variant RFC4122
return fmt.Sprintf("%x-%x-%x-%x-%x", uiq[0:4], uiq[4:6], uiq[6:8], uiq[8:10], uiq[10:])
}
}

0 comments on commit 1eae534

Please sign in to comment.