github.com/rubenv/servertiming (go): Simple library for adding Server-Timing headers (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server-Timing) to your application.  A Timing object can be used to gather metrics and format them into the correct format.  Create a new instance:  Optionally enable name prefixing to preserve the order of metrics (will adjust names though!)  Add a few metrics, either by manually specifying the duration:  Or by using the start-stop API:  Then send it with your response:  Timings can be sent as a trailer when using HTTP2, see the example in net/http: https://godoc.org/net/http#example-ResponseWriter--Trailers
Keywords: devtools|go|golang|server-timing