Skip to content

Commit

Permalink
Go mod init
Browse files Browse the repository at this point in the history
  • Loading branch information
dgurney committed Jun 18, 2021
1 parent ce56f1f commit ecbcfea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
15 changes: 0 additions & 15 deletions concurrencydifference.txt

This file was deleted.

5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/dgurney/pngen

go 1.17

require github.com/google/uuid v1.2.0
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/google/uuid v1.2.0 h1:qJYtXnJRWmpe7m/3XlyhrsLrEURqHRM2kxzoxXqyUDs=
github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
3 changes: 1 addition & 2 deletions png.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/google/uuid"
)

const version = "1.0.6"
const version = "1.0.7"

var rnd = rand.New(rand.NewSource(time.Now().UnixNano()))

Expand Down Expand Up @@ -97,7 +97,6 @@ func main() {
}
ch := make(chan *image.NRGBA)
var wg sync.WaitGroup
// Concurrency reduces the time required by approximately 63%!
for i := 0; i < *amount; i++ {
wg.Add(1)
go genImg(ch, *width, *height, *maxcolors, *allowalpha)
Expand Down

0 comments on commit ecbcfea

Please sign in to comment.