Creating circleci job to just lint and vet code

This commit is contained in:
Cameron Sparr
2015-08-04 08:58:32 -06:00
parent 03c520798e
commit 3ff2ea8d4e
10 changed files with 93 additions and 15 deletions

View File

@@ -8,6 +8,8 @@ import (
var localhost = "localhost"
// GetLocalHost returns the DOCKER_HOST environment variable, parsing
// out any scheme or ports so that only the IP address is returned.
func GetLocalHost() string {
if dockerHostVar := os.Getenv("DOCKER_HOST"); dockerHostVar != "" {
u, err := url.Parse(dockerHostVar)