Debian Codegraph @

internal/event/keys/util.go

raw symbols SCIP
1 // Copyright 2023 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package keysscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/
6
7 import (
8 "sortscip-go gomod github.com/golang/go/src go1.25.0 sort/"
9 "stringsscip-go gomod github.com/golang/go/src go1.25.0 strings/"
10 )
11
12 // Join returns a canonical join of the keys in S:
13 // a sorted comma-separated string list.
14 func Joinscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/Join().[S ~[]Tscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/T#, T ~string](s S) string {
15 strs := make([]string, 0, len(s))
16 for _, v := range s {
17 strs = append(strs, string(v))
18 }
19 sortscip-go gomod github.com/golang/go/src go1.25.0 sort/.Stringsscip-go gomod github.com/golang/go/src go1.25.0 sort/Strings().(strs)
20 return stringsscip-go gomod github.com/golang/go/src go1.25.0 strings/.Joinscip-go gomod github.com/golang/go/src go1.25.0 strings/Join().(strs, ",")
21 }