From a329bbc2159a35437d81b78f8176925904ddae08 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 25 Aug 2015 23:22:05 +0800 Subject: new org dashboard issues --- modules/base/tool.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules') diff --git a/modules/base/tool.go b/modules/base/tool.go index 16759f21..0e118552 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) -- cgit v1.2.3