Hi, I'm encountering this error when trying to run the swag init command, it happens after I make a generic function inside handlers, the create function that I sent here is one example, before that change, everything was working fine, this is the init command:
2024/02/15 19:41:16 Generate swagger docs....
2024/02/15 19:41:16 Generate general API Info, search dir:./
2024/02/15 19:41:16 warning: failed to get package name in dir: ./, error: execute go list command, exit status 1, stdout:, stderr:no Go files in C:\Users\ALMAS\Desktop\Go Learning\golang-clean-web-api-project
2024/02/15 19:41:18 warning: failed to evaluate const mProfCycleWrap at C:\Program Files\Go\src\runtime\mprof.go:168:7, reflect: call of reflect.Value.Len on zero Value
2024/02/15 19:41:18 ParseComment error in file C:\Users\ALMAS\Desktop\Go Learning\golang-clean-web-api-project\api\handlers\cities.go :cannot find type definition: dto.CreateCityRequest
Hi, I'm encountering this error when trying to run the swag init command, it happens after I make a generic function inside handlers, the create function that I sent here is one example, before that change, everything was working fine, this is the init command:
swag init -g cmd/main.go --parseInternal --parseDependency
this is the city handler:
this is that generic create function:
errors: