NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Tracing HTTP Requests with Go's net/HTTP/httptrace (blainsmith.com)
melodyogonna 8 minutes ago [-]
Little things like this are why Go is great. People make arguments against Go based just on available language syntax, but languages are more than just syntax; it is about the end-to-end development flow. I actually think C# and the .NET platform are the only other ecosystem that looks at development the same way. In most other ecosystems, you almost always need to step outside what the built-in language platform provides for any moderately complicated use-case.
s-macke 38 minutes ago [-]
I wish I had known this two years ago. I ended up writing my own embedded connection struct to trace these things [0].

  type Connection struct {
    net.Conn
    OnEventCallback func(clientClosed bool, serverClosed bool, err error)
  }

[0] https://github.com/s-macke/SlapperX/blob/master/src/tracing/...
Zambyte 11 minutes ago [-]
hn title mangling strikes again.
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 12:39:12 GMT+0000 (Coordinated Universal Time) with Vercel.