Closed wsw70 closed 1 year ago
Hello,
You have a few options: you can either call the ToSlice and convert the set to a slice where you can reference the strings directly.
Or a better way is to just iterate the Set directly using the Each function which takes a callback. This is ideal because you can just leave the set as-is and do updates and then iterate when needed.
I built a Set of
string
and I now would like to print it outfmt.Printf("%v", mySet)
outputsSet{a, b, ...}
but I do not know how to actually get the bare strings inside (to be able, for instance, tostrings.Join()
them)