Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
际垚 王
ShortLink
Commits
523010f8
Commit
523010f8
authored
Dec 04, 2022
by
Vista
♻
Browse files
add guide.md
parent
34fef64d
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
deleted
100644 → 0
View file @
34fef64d
# Golang Service Template
Golang back-end service template. Using this template, you can get started with back-end projects quickly.
| Web Framework | ORM | Database Driver | Configuration Manager | Log Manager | API Documentation |
|:----------------:|:------------:|:--------------------:|:---------------------:|:---------------:|:-------------------:|
| labstack/echo/v4 | gorm.io/gorm | gorm.io/driver/mysql | spf13/viper | sirupsen/logrus | swaggo/echo-swagger |
> forked from go-svc-tpl
## 使用
1.
该模板未建立 model 层,请自己设计表结构,然后完成 model 部分
-
注意,若非使用
`automigrate`
而是手动建表,请附上相应 sql 文档
2.
controller 部分请遵循 api 文档,暂时不用管 swagger 部分
## Init
1.
create
`conf.yaml`
2.
use
`swag init`
to create swagger docs
3.
go build & run
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment