Re:Golang's network stack attempts to parse HTTP headers as ...
by adonovan on Thursday January 21, 2021 @12:14PM
(#25861291)
Exactly. It's a convention, not a law of physics. If a string's UTF-8 validity is important to the correctness of your function, check it. It's not expensive.
This is not a defence of Go but more of a warning to Go programmers.