Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add swagger 2.0 #5

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

feature: add swagger 2.0 #5

wants to merge 1 commit into from

Conversation

orgball2608
Copy link

Set up swagger 2.0 for project

Comment on lines +30 to 32

docs "elearning/docs"
)
Copy link
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

@@ -18,6 +19,9 @@ import (
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin/binding"
"github.com/go-playground/validator/v10"

swaggerFiles "github.com/swaggo/files"
Copy link
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