go starter
1.0.0
This repository is a barebones golang web service scaffold that sets up routes, SSL, static file serving, and a global pooled mysql database connection. This is still in progress!
Since Golang uses the directory structure of your project for import/build paths, to use this code all import instances with "github.com/suyashkumar/go-starter" will have to be replaced with your import path. A script is provided to automatically do this for you.
git clone https://github.com/suyashkumar/go-starter <path-of-your-project>cd <path-of-your-project>./install <go-import-path-of-your-project> You must supply the go import path for your project. The current path is simply "github.com/suyashkumar/go-starter" but yours might be "github.com/bob/hello-world" if your project lives in $GOPATH/src/github.com/bob/hello-world.dep ensure to install dependencies (or just run make to build).rm -rf .git and git init your new git repo from scratch.make to run tests and build your projectmake release to build win/linux/darwin binaries of your projectmake test to just run all tests in the project