Closed icholy closed 8 years ago
Thanks again!
Curious though, was the switch to Fprintf() due to easier formatting versus the previous WriteString() that was in there? As you can likely tell I'm a go n00b so looking to learn any chance I get.
Fprintf()
WriteString()
@esell yep. Since strings in Go are immutble, concatenating them using + will have to create a whole new string. So it's a bit of an anti-pattern.
+
Thanks again!
Curious though, was the switch to
Fprintf()
due to easier formatting versus the previousWriteString()
that was in there? As you can likely tell I'm a go n00b so looking to learn any chance I get.