From a83befa0d111a0ba6fac52d763e93c76a2ef94d4 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 19 Dec 2025 12:52:30 +0100 Subject: all: use any instead of interface{} Any is the preferred over interface{} now in Go. --- vm/qemu/qmp.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'vm/qemu') diff --git a/vm/qemu/qmp.go b/vm/qemu/qmp.go index 4cd8d2de1..d24314893 100644 --- a/vm/qemu/qmp.go +++ b/vm/qemu/qmp.go @@ -29,8 +29,8 @@ type qmpBanner struct { } type qmpCommand struct { - Execute string `json:"execute"` - Arguments interface{} `json:"arguments,omitempty"` + Execute string `json:"execute"` + Arguments any `json:"arguments,omitempty"` } type hmpCommand struct { @@ -43,10 +43,10 @@ type qmpResponse struct { Class string Desc string } - Return interface{} + Return any Event string - Data map[string]interface{} + Data map[string]any Timestamp struct { Seconds int64 Microseconds int64 @@ -102,7 +102,7 @@ func (inst *instance) doQmp(cmd *qmpCommand) (*qmpResponse, error) { return inst.qmpRecv() } -func (inst *instance) qmp(cmd *qmpCommand) (interface{}, error) { +func (inst *instance) qmp(cmd *qmpCommand) (any, error) { if err := inst.qmpConnCheck(); err != nil { return nil, err } -- cgit mrf-deployment