pkg/profile — pull request #3 by gbbr (2014-10-23 09:49:23+00:00)
Title: Switched to switch

I was looking over this with the hope to learn something new and I found it was a great example of using the functional options you spoke about during your talk!

I thought I'd make this change because I personally find it more readable to use a switch when there are multiple if's, it kind of prepares the reader for a lot of conditions. The fact that Go also allows us to have a "no parameter" switch gives us the opportunity to do such things.

This is obviously just a personal opinion and you don't have to merge it if you don't agree.