MCPcopy Create free account
hub / github.com/gogs/gogs / Int64sToStrings

Function Int64sToStrings

internal/tool/tool.go:360–366  ·  view source on GitHub ↗

Int64sToStrings converts a slice of int64 to a slice of string.

(ints []int64)

Source from the content-addressed store, hash-verified

358
359// Int64sToStrings converts a slice of int64 to a slice of string.
360func Int64sToStrings(ints []int64) []string {
361 strs := make([]string, len(ints))
362 for i := range ints {
363 strs[i] = com.ToStr(ints[i])
364 }
365 return strs
366}
367
368// Int64sToMap converts a slice of int64 to a int64 map.
369func Int64sToMap(ints []int64) map[int64]bool {

Callers 3

UpdateOrgProtectBranchFunction · 0.92
GetLabelsInRepoByIDsFunction · 0.92
getLabelsByIssueIDFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected