esell / deb-simple

A lightweight, bare-bones apt repository server
MIT License
238 stars 17 forks source link

Refactor some stuff #3

Closed icholy closed 8 years ago

esell commented 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.

icholy commented 8 years ago

@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.