Introducing HTTP Tracing
blog.golang.org
blog.golang.org
$ httpstat https://news.ycombinator.com
HTTP/1.1 200 OK
Date: Wed, 05 Oct 2016 05:23:28 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
Cache-Control: private
X-Frame-Options: DENY
Cache-Control: max-age=0
Strict-Transport-Security: max-age=31556900; includeSubDomains
Server: cloudflare-nginx
CF-RAY: 2ece7111d9ba29c4-MCT
DNS Lookup TCP Connection SSL Handshake Server Processing Content Transfer
[ 5ms | 152ms | 508ms | 1285ms | 226ms ]
| | | | |
namelookup:5ms | | | |
connect:157ms | | |
pretransfer:665ms | |
starttransfer:1950ms |
total:2176msOn another note, it's pretty f*cking lame that the only discussion in this post is a tangent about error checking and not even remotely related to the content.
...And I don't mean the "if err" sprinkling that has a whole subthread, I mean the actual layout of the code. It's not hard to understand just.. ugly. Aesthetically. And it's hard for me to put my finger on why.. maybe it's the symbols everywhere.
I was about ready to make a remark about how I hope that's not idiomatic go code, but no, this is from the official site.
I've never wanted to like a language that makes me not want to like it as much as Go, and that's the god's honest truth.
To me, code that's easy to understand is beautiful. If you've got different ideals, then probably go ain't the language for you.
Or use it for a while, and you may find your standards if beauty shift.