Space Cat, Prince Among Thieves

Posts Tagged “Golang”

Go's New Iterators Smell (A Little) Funny, but It's Probably OK

Go's new Iterators were released on August 13th with Go 1.23.

They've had just a minute to marinate. In some parts of the community they're unpopular. I don't particularly mind them. The old alternatives seem a little more "Go" to me, but the new iterators are largely fine.

I am mildly disappoin…


Read More / Comment »

Text to "Go String" Tool

Go currently lacks any sort of heredoc or similar syntax, and it's backtick syntax cannot contain backticks. This can make correctly encoded creating go strings, particularly for large strings that contain many backticks, a bit of a challenge.

Here's a tool to safely encode any given input to Go st…


Read More / Comment »