feat: initialize client && request #16
Triggered via pull request
September 12, 2024 06:06
Status
Failure
Total duration
1m 47s
Artifacts
–
Annotations
10 errors and 3 warnings
staticcheck
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"}
|
staticcheck
[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"}
|
staticcheck
Process completed with exit code 1.
|
lint:
example/main.go#L11
undefined: easy_http.NewOption
|
lint:
example/main.go#L13
undefined: easy_http.NewOption
|
lint:
example/main.go#L17
undefined: easy_http.Option
|
lint:
example/main.go#L19
c1.SetHeader undefined (type *easy_http.Client has no field or method SetHeader)
|
lint:
example/main.go#L25
c2.SetHeader undefined (type *easy_http.Client has no field or method SetHeader)
|
lint:
example/main.go#L30
c3.SetHeader undefined (type *easy_http.Client has no field or method SetHeader) (typecheck)
|
lint
issues found
|
compliant
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
staticcheck
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/
|
lint
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, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|