added ngo flag and default worker value (NumCpu)

This commit was merged in pull request #4.
This commit is contained in:
Derek McQuay
2016-11-15 21:28:01 -08:00
parent 8d0ecfdc7f
commit b11c4701c3
2 changed files with 3 additions and 2 deletions
+2
View File
@@ -9,10 +9,12 @@ import (
"fmt"
"io"
"os"
"runtime"
)
var algo = flag.String("a", "sha1", "algorithm to use")
var mode = flag.Bool("c", false, "check")
var ngo = flag.Int("n", runtime.NumCPU(), "number of goroutines")
func main() {
flag.Parse()