Instead of making this a switch statement, how about
changing the signature to func([]string)?