1 Star 0 Fork 0

哆啦 / goblog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.go 329 Bytes
一键复制 编辑 原始数据 按行查看 历史
哆啦 提交于 2021-01-19 16:39 . config
package main
import (
"goblog/app/http/middlewares"
"goblog/bootstrap"
"goblog/config"
c "goblog/pkg/config"
"net/http"
)
func init() {
config.Initialize()
}
func main() {
bootstrap.SetupDB()
router := bootstrap.SetopRoute()
http.ListenAndServe(":"+c.GetString("app.port"), middlewares.RemoveTrailingSlash(router))
}
1
https://gitee.com/xiaodingdang_dora/goblog.git
git@gitee.com:xiaodingdang_dora/goblog.git
xiaodingdang_dora
goblog
goblog
master

搜索帮助