-
bodyclose
Analyzer: checks whether HTTP response body is closed and a re-use of TCP connection is not blocked.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I know this is a set of examples for synchronization not for HTTP, but examples like this being published and copy-pasted everywhere are why most HTTP clients in Go are incorrect. There's even a bodyclose lint to catch the mistake made here, but most people don't seem to know about it, and it's even disabled by default in golangci-lint.
Proposals like this for improving alignment do end up adding type level tags... but as comments. I'm really having trouble understanding how the language team hasn't come around about using comments for this yet. At first it was an argument that it doesn't actually affect the language's semantic complexity, but now that it affects the correctness of code for things like atomics and FFI, it should be counted as part of the language and be on equal footing for analysis by all tools. I'm not the first to say so.