Skip to content

Instantly share code, notes, and snippets.

@balacode
balacode / permute_strings.go
Last active May 19, 2022 12:29
PermuteStrings() - fn to generate a string array of all combinations of input string slices, maintaining order
// -----------------------------------------------------------------------------
// (c) balarabe@protonmail.com License: MIT
// :v: 2018-03-18 23:55:24 [permute_strings.go]
// -----------------------------------------------------------------------------
package main
import "bytes" // standard
import "fmt" // standard
import "testing" // standard