Skip to content

swag cannot generate docs when main go is located in directory #73

@kotyara85

Description

@kotyara85

My project structure:
./
./cmd/main/main.go
./internal/xxxx
./pkg/xxxx

When I run swag init under root directory of the project it complains on absence of main.go.
When I run swag init under cmd/main/main.go it doesn't include ./internal or ./pkg directories

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions