summaryrefslogtreecommitdiffstats
path: root/modules/base/tool.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-25 23:22:05 +0800
committerUnknwon <u@gogs.io>2015-08-25 23:22:05 +0800
commita329bbc2159a35437d81b78f8176925904ddae08 (patch)
tree376d64ae757cf455cd65205475fd93bc11cc8d14 /modules/base/tool.go
parentf808df5a7b36d134ec92d62e9041a6320f416054 (diff)
downloadgitea-a329bbc2159a35437d81b78f8176925904ddae08.tar.gz
gitea-a329bbc2159a35437d81b78f8176925904ddae08.zip
new org dashboard issues
Diffstat (limited to 'modules/base/tool.go')
-rw-r--r--modules/base/tool.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/base/tool.go b/modules/base/tool.go
index 16759f21f6..0e118552aa 100644
--- a/modules/base/tool.go
+++ b/modules/base/tool.go
@@ -434,6 +434,15 @@ func StringsToInt64s(strs []string) []int64 {
return ints
}
+// Int64sToStrings converts a slice of int64 to a slice of string.
+func Int64sToStrings(ints []int64) []string {
+ strs := make([]string, len(ints))
+ for i := range ints {
+ strs[i] = com.ToStr(ints[i])
+ }
+ return strs
+}
+
// Int64sToMap converts a slice of int64 to a int64 map.
func Int64sToMap(ints []int64) map[int64]bool {
m := make(map[int64]bool)