Using the net/url package in Go

One of my pet peeves in code reviews is creating and manipulating URLs by hand. It’s a never-ending source of easily-avoided bugs that can be caught at code review time instead of in testing or production. It’s just so tempting to use fmt.Sprintf() or string concatenation but you are guaranteed trouble later on. It doesn’t help… Continue reading Using the net/url package in Go

Published
Categorized as Go