swaggo / swag

Automatically generate RESTful API documentation with Swagger 2.0 for Go.
MIT License
10.77k stars 1.2k forks source link

warning: failed to evaluate const trackerLength #1922

Open cometstone opened 2 weeks ago

cometstone commented 2 weeks ago

Describe the bug warning: failed to evaluate const trackerLength at /Users/liaoxinlei/go/pkg/mod/github.com/go-ping/ping@v1.1.0/ping.go:77:2, reflect: call of reflect.Value.Len on zero Value

To Reproduce Steps to reproduce the behavior:

  1. swag init --parseDependency --parseDepth=6 --exclude=./copy
  2. Generate swagger docs.... Generate general API Info, search dir:./ warning: failed to evaluate const trackerLength at /Users/xxx/go/pkg/mod/github.com/go-ping/ping@v1.1.0/ping.go:77:2, reflect: call of reflect.Value.Len on zero Value

Your swag version swag version v1.16.4

Your go version go version go1.23.2 darwin/amd64

Desktop (please complete the following information):

sdghchj commented 3 days ago

Ignore it.