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

Function Int64sToMap

internal/tool/tool.go:369–375  ·  view source on GitHub ↗

Int64sToMap converts a slice of int64 to a int64 map.

(ints []int64)

Source from the content-addressed store, hash-verified

367
368// Int64sToMap converts a slice of int64 to a int64 map.
369func Int64sToMap(ints []int64) map[int64]bool {
370 m := make(map[int64]bool)
371 for _, i := range ints {
372 m[i] = true
373 }
374 return m
375}
376
377// IsLetter reports whether the rune is a letter (category L).
378// https://github.com/golang/go/blob/master/src/go/scanner/scanner.go#L257

Callers 1

ValidateRepoMetasFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected