mccutchen / go-httpbin

A reasonably complete and well-tested golang port of httpbin, with zero dependencies outside the go stdlib.
https://httpbingo.org
MIT License
596 stars 124 forks source link

feat: Add /version endpoint and command line argument -version #188

Open mloskot opened 1 month ago

mloskot commented 1 month ago

Is there any reason that go-httpbin binary does not seem to offer any way to report its version?

I there isn't any, I'd like to suggest adding it, if possible.

Additionally, it would be nice to have /version endpoint.

I often have to test number of environments, clusters, DNS zones/domains, where I deploy different versions of go-httpbin, and being able to request the release version would be useful as a way to identify certain deployments.

If there is an interest, I'm keen in giving it a shot to implement it.

mccutchen commented 1 month ago

No particular reason. Both additions sound like a good idea to me, I’ll gladly review a pull request if you open one!

mloskot commented 1 month ago

Good to hear, I've proposed #191