Skip to content

feature: add swagger 2.0#5

Open
orgball2608 wants to merge 1 commit into
devfrom
feature/swagger
Open

feature: add swagger 2.0#5
orgball2608 wants to merge 1 commit into
devfrom
feature/swagger

Conversation

@orgball2608
Copy link
Copy Markdown

Set up swagger 2.0 for project

Comment thread cmd/main.go
Comment on lines +30 to 32

docs "elearning/docs"
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hạn chế dùng import alias khi k cần thiết

Comment thread routers/router.go
"github.com/gin-gonic/gin/binding"
"github.com/go-playground/validator/v10"

swaggerFiles "github.com/swaggo/files"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chỉ dùng import alias khi tên bị trùng hoặc path ko có match với package name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants