convert uses of interface{} to any

Done via:
  find . -name "*.go" | xargs sed -i -E 's/interface\{\}/any/g'

PiperOrigin-RevId: 487033228
This commit is contained in:
Kevin Krakauer
2022-11-08 13:14:06 -08:00
committed by gVisor bot
parent c82b70015d
commit d8aa09e04c
220 changed files with 509 additions and 509 deletions
+1 -1
View File
@@ -429,7 +429,7 @@ type cgroupJSONSystemd struct {
}
type cgroupJSONUnknown struct {
Cgroup interface{} `json:"cgroupunknown"`
Cgroup any `json:"cgroupunknown"`
}
// UnmarshalJSON implements json.Unmarshaler.UnmarshalJSON
+2 -2
View File
@@ -292,14 +292,14 @@ func addIOProps(props []systemdDbus.Property, name string, devs []specs.LinuxThr
return props
}
func (c *cgroupSystemd) addProp(name string, value interface{}) {
func (c *cgroupSystemd) addProp(name string, value any) {
if value == nil {
return
}
c.properties = append(c.properties, newProp(name, value))
}
func newProp(name string, units interface{}) systemdDbus.Property {
func newProp(name string, units any) systemdDbus.Property {
return systemdDbus.Property{
Name: name,
Value: dbus.MakeVariant(units),
+1 -1
View File
@@ -237,7 +237,7 @@ func filterProperties(got []systemdDbus.Property, want []systemdDbus.Property) [
if want == nil {
return nil
}
filterMap := map[string]interface{}{}
filterMap := map[string]any{}
for _, prop := range want {
filterMap[prop.Name] = nil
}