#golang tip: Use io.WriteString when writing strings to http.ResponseWriters. Saves an allocation, and looks nicer than casting to []byte!
-
Show this thread
I mean, really you should be using io.WriteString pretty much anywhere you write a string. Go grep your codebase for instances of "Write([]byte(" and fix them!
11:55 PM - 28 Nov 2018
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.