From 1925b06c788dcc7a8fb1c216c4e804cc6ff95049 Mon Sep 17 00:00:00 2001
From: Will McCutchen <will@mccutch.org>
Date: Sat, 24 Jun 2017 13:15:59 -0700
Subject: [PATCH] Move main package into cmd subdir

---
 .travis.yml                       | 1 +
 Makefile                          | 9 ++-------
 main.go => cmd/go-httpbin/main.go | 0
 3 files changed, 3 insertions(+), 7 deletions(-)
 rename main.go => cmd/go-httpbin/main.go (100%)

diff --git a/.travis.yml b/.travis.yml
index 20d1c9f..5fc0205 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,6 +2,7 @@
 language: go
 go:
  - 1.7
+ - 1.8
  - tip
 script: make test
 notifications:
diff --git a/Makefile b/Makefile
index a8a4d7f..6b265dd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
 build: dist/go-httpbin
 
-dist/go-httpbin: assets *.go httpbin/*.go
+dist/go-httpbin: assets cmd/go-httpbin/*.go httpbin/*.go
 	mkdir -p dist
-	go build -o dist/go-httpbin
+	go build -o dist/go-httpbin ./cmd/go-httpbin
 
 assets: httpbin/assets/*
 	go-bindata -o httpbin/assets.go -pkg=httpbin -prefix=httpbin/assets httpbin/assets
@@ -18,11 +18,6 @@ testcover: assets
 run: build
 	./dist/go-httpbin
 
-watch:
-	# brew install entr
-	# https://bitbucket.org/eradman/entr/
-	ls */*.go | entr -r -s "go build -o dist/go-httpbin && dist/go-httpbin"
-
 clean:
 	rm -r dist
 
diff --git a/main.go b/cmd/go-httpbin/main.go
similarity index 100%
rename from main.go
rename to cmd/go-httpbin/main.go
-- 
GitLab