You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import (
"fmt"
"github.com/jasonlvhit/gocron"
)
func task() {
fmt.Println("I am runnning task.")
}
func taskWithParams(a int, b string, c string) {
fmt.Println(a, b, c)
}
func main() {
gocron.Every(30).Seconds().Do(taskWithParams, 1, "hello", "yup")
<-gocron.Start()
s := gocron.NewScheduler()
s.Every(3).Seconds().Do(task)
<-s.Start()
}
go get
# strings
/usr/local/go/src/strings/strings_decl.go:8:6: IndexByte redeclared in this block
previous declaration at /usr/local/go/src/strings/strings.go:150:34
What did you expect to see?
Should download the pkg with no errors, I was using go1.11 with no problems
What did you see instead?
# strings
/usr/local/go/src/strings/strings_decl.go:8:6: IndexByte redeclared in this block
previous declaration at /usr/local/go/src/strings/strings.go:150:34
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go get
go get
What did you expect to see?
Should download the pkg with no errors, I was using
go1.11
with no problemsWhat did you see instead?
The text was updated successfully, but these errors were encountered: