Httpstat, it's like curl -v, but with colours

I saw this tweet earlier today,, and thought it would be great to have a tool like this written in Go (rather than shelling out to curl, blergh). So, here it is:



Nice! It is amazing how much can be done with so few lines of code, using pure go libraries - a compile-time language. After seeing your screen shot, I wanted to try the program and then look at the code - thinking there would be a lot of logic to dig through. Ha. 176 lines in main.go. Most of the code dealing with color, almost no logic dealing with the http connection or the timing. It’s so simple … when you know how to do it.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.