summaryrefslogtreecommitdiff
path: root/src/nshd/hackers_git/set.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-09-07 23:58:08 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-09-07 23:58:08 -0600
commitb09ba2f9f42c44402d0bd641789af9c04e6d4ee6 (patch)
treee10be24b4dd512996f20f36d82c74db782ef83b2 /src/nshd/hackers_git/set.go
parentb6f1fcb4f2d3cfb1eea95e9e0c6ae11f0659ba3a (diff)
clean up
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
+}