mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
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:
+3
-3
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user