mirror of
https://github.com/hanzoai/gateway.git
synced 2026-10-30 15:04:44 +00:00
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]>
15 lines
205 B
Go
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)
|
|
}
|