ahmetb / go-httpbin

http://httpbin.org endpoints for your Go tests
https://godoc.org/github.com/ahmetalpbalkan/go-httpbin
Apache License 2.0
124 stars 26 forks source link

Allow use of go-httpbin as a command #8

Closed gaul closed 7 years ago

ahmetb commented 7 years ago

@andrewgaul thanks for your patch. I just reviewed this. This appears to be a breaking change.

Instead, can this be done by creating a cmd/httpbin/main.go? That should be as simple as 1 file change and it is backwards-compatible.

gaul commented 7 years ago

Done. I am a little confused about how go manages commands in subpackages since you need to change into the directory to build it.