go starter
1.0.0
该存储库是一种准骨golang Web服务脚手架,可以设置路由,SSL,静态文件服务以及全局汇总的MySQL数据库连接。这仍在进行中!
由于Golang使用项目的目录结构进行导入/构建路径,因此使用“ github.com/suyashkumar/go-starter”的所有导入实例都必须用您的导入路径替换。提供了一个脚本来自动为您执行此操作。
git clone https://github.com/suyashkumar/go-starter <path-of-your-project>cd <path-of-your-project>./install <go-import-path-of-your-project>您必须为项目提供GO Import路径。当前的路径只是“ github.com/suyashkumar/go-starter”,但如果您的项目居住在$GOPATH/src/github.com/bob/hello-world中,则您的项目可能是“ github.com/bob/hello-world”。dep ensure安装依赖项(或仅运行make构建)。git init rm -rf .git 。 make测试并建立您的项目make release您的项目的Win/Linux/Darwin二进制文件make test以进行项目中的所有测试