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:
parent
425f23e70f
commit
0a86afbec3
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
image: golang:1.12.9
|
||||
image: golang:1.13.4
|
||||
|
||||
variables:
|
||||
CGO_ENABLED: 0
|
||||
|
|
2
main.go
2
main.go
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue