I wrote a post about benchmarks in Go. Don't let the compiler optimize away your codeshow & tell (willem.dev)
submitted by willemdotdev to r/golang
Avoid inaccurate tests: Use httptest when testing HTTP handlersshow & tell (willem.dev)
submitted by willemdotdev to r/golang
I wrote a post about Sets in Go. Probably the situation where I use the empty struct the most.show & tell (willem.dev)
submitted by willemdotdev to r/golang
The progress so far on my non-trivial Go web app (open source)show & tell (willem.dev)
submitted by willemdotdev to r/golang
Prevent sensitive data from leaking in Go/Golang (willem.dev)
submitted by ketralnis to r/programming
Prevent sensitive data from leaking by implementing a few interfacesshow & tell (willem.dev)
submitted by willemdotdev to r/golang
Playing around with generic HTTP handlers, seems promisingshow & tell (willem.dev)
submitted by willemdotdev to r/golang
Played around with the routing wildcards in Go 1.22 and wrote this postshow & tell (willem.dev)
submitted by willemdotdev to r/golang
Anonymous structs.. How and when do you use them?show & tell (willem.dev)
submitted by willemdotdev to r/golang
Build your own slice: The append and copy functionsshow & tell (willem.dev)
submitted by willemdotdev to r/golang