Use any instead of interface{}

The keyword is available since Go 1.18 (see
https://pkg.go.dev/builtin#any).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2025-03-28 18:55:28 -07:00
parent 17570625c0
commit 7fdec327a0
8 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -7,9 +7,9 @@ import (
// Event struct for encoding the event data to json.
type Event struct {
Type string `json:"type"`
ID string `json:"id"`
Data interface{} `json:"data,omitempty"`
Type string `json:"type"`
ID string `json:"id"`
Data any `json:"data,omitempty"`
}
// Stats is the runc specific stats structure for stability when encoding and decoding stats.