bndr / gojenkins

Jenkins API Client in Go. Looking for maintainers to move this project forward.
Apache License 2.0
863 stars 443 forks source link

`Jenkins.Init` func do not need `ctx` in README.md #228

Closed k8scat closed 3 years ago

k8scat commented 3 years ago
ctx := context.Background()
jenkins := gojenkins.CreateJenkins(nil, "http://localhost:8080/", "", "")
_, err := jenkins.Init(ctx)

Code above will alert that too many arguments for Jenkins.Init func, is the README demo wrong?