I was writing some unit tests and needed a function to feed various string combinations to a unit test, so I created this small function to return a string array of all combinations of input string arrays.
E.g. PermuteStrings( []string{"Two", "Three"}, []string{" "}, []string{"Dollars", "Euros"}
returns []string{ "Two Dollars", "Two Euros", "Three Dollars", "Three Euros"}
Hope you find it useful. Please share any improvements: https://gist.github.com/balacode/ff456d2e5854f2803790cc0a06ae5769 (edited to fix link)
