summaryrefslogtreecommitdiff
path: root/src/nshd/hackers_git/set.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/nshd/hackers_git/set.go')
-rw-r--r--src/nshd/hackers_git/set.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nshd/hackers_git/set.go b/src/nshd/hackers_git/set.go
new file mode 100644
index 0000000..9faf0f4
--- /dev/null
+++ b/src/nshd/hackers_git/set.go
@@ -0,0 +1,11 @@
+package hackers_git
+
+func set2list(set map[string]bool) []string {
+ list := make([]string, len(set))
+ i := uint(0)
+ for item, _ := range set {
+ list[i] = item
+ i++
+ }
+ return list
+}