Get all permutations of a slice

go, permutation

Solution

Permutations of anything implementing `sort.Interface`: Permutation{First,Next}

Problem

I was wondering if there was a way to find all the permutations of an slice filled with characters in Go? In Python you can use `itertools.product` with a list or characters or integers, and you can get all the possible permutations. I have looked to see if there is a package out there, and I cannot seem to find one. Any help would be welcomed.

Original source