summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCasey Robinson <casey.robinson@distilnetworks.com>2014-12-17 15:21:03 -0500
committerCasey Robinson <casey.robinson@distilnetworks.com>2014-12-17 15:21:03 -0500
commitd490019a6c7180870992011f5a6f8f9b6b4422fd (patch)
tree2eca7a104d25e51f66329abf6a2a81214fe83c9c
parent33dee9fda74318e35021488681281d768478bd29 (diff)
downloadonetime-d490019a6c7180870992011f5a6f8f9b6b4422fd.tar.gz
onetime-d490019a6c7180870992011f5a6f8f9b6b4422fd.tar.bz2
onetime-d490019a6c7180870992011f5a6f8f9b6b4422fd.zip
fmt code
-rw-r--r--gac.go2
-rw-r--r--main.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/gac.go b/gac.go
index 09caf68..11d1910 100644
--- a/gac.go
+++ b/gac.go
@@ -50,6 +50,6 @@ func hotp(secret string, counter int64) string {
code = (code & 0x7FFFFFFF) % 1000000
converted := strconv.Itoa(int(code))
- padLength := 6 - len(converted);
+ padLength := 6 - len(converted)
return strings.Repeat("0", padLength) + converted
}
diff --git a/main.go b/main.go
index 9fb5a8e..31fa5ea 100644
--- a/main.go
+++ b/main.go
@@ -13,7 +13,7 @@ import (
)
type provider struct {
- name string
+ name string
secret string
}
@@ -46,7 +46,7 @@ func main() {
go func() {
for {
displayCodes(ps)
- time.Sleep(500*time.Millisecond)
+ time.Sleep(500 * time.Millisecond)
clearOutput(len(ps))
}
}()