chore: updated Go to version 1.13.4

As part of the Go update the flag.Parse()
function was moved out of init() and into
main() as the test was failing.
This commit is contained in:
Dan Anglin 2019-12-01 20:30:20 +00:00
parent 425f23e70f
commit 0a86afbec3
No known key found for this signature in database
GPG key ID: 7AC2B18EC1D09F27
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
---
image: golang:1.12.9
image: golang:1.13.4
variables:
CGO_ENABLED: 0

View file

@ -46,10 +46,10 @@ func init() {
flag.StringVar(&longBreakTime, "long-break", "20m", "sets the timer for your long break.")
flag.IntVar(&maxWorkSessions, "max-work-sessions", 4, "sets the maximum number of work cycles to complete before taking a long break.")
flag.BoolVar(&printVersion, "version", false, "print version and exit.")
flag.Parse()
}
func main() {
flag.Parse()
if printVersion {
Version()