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以進行項目中的所有測試