feat: initialize client && request #16
Annotations
3 errors and 1 warning
|
[staticcheck] reported by reviewdog 🐶
# github.com/hertz-contrib/easy_http/example
example/main.go:11:21: undefined: easy_http.NewOption
example/main.go:13:21: undefined: easy_http.NewOption
example/main.go:17:43: undefined: easy_http.Option
example/main.go:19:17: c1.SetHeader undefined (type *easy_http.Client has no field or method SetHeader)
example/main.go:25:16: c2.SetHeader undefined (type *easy_http.Client has no field or method SetHeader)
example/main.go:30:16: c3.SetHeader undefined (type *easy_http.Client has no field or method SetHeader)
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"# github.com/hertz-contrib/easy_http/example\nexample/main.go:11:21: undefined: easy_http.NewOption\nexample/main.go:13:21: undefined: easy_http.NewOption\nexample/main.go:17:43: undefined: easy_http.Option\nexample/main.go:19:17: c1.SetHeader undefined (type *easy_http.Client has no field or method SetHeader)\nexample/main.go:25:16: c2.SetHeader undefined (type *easy_http.Client has no field or method SetHeader)\nexample/main.go:30:16: c3.SetHeader undefined (type *easy_http.Client has no field or method SetHeader)","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
|
|
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
This job failed
Loading