Files
zeekayandHanzo Dev a5c5cc019e Go 1.27.1, and the code it can say more simply
Modules declare go 1.27.1 and the build images follow. go fix applied the
modernizers; omitzero is not applied, since it changes what the JSON says.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-16 22:42:15 -07:00

15 lines
205 B
Go

package opencensus
import (
"slices"
"go.opencensus.io/tag"
)
func appendIfMissing(slice []tag.Key, i tag.Key) []tag.Key {
if slices.Contains(slice, i) {
return slice
}
return append(slice, i)
}