From 75e5e991cde452ba0b836a3cb16239c46993df09 Mon Sep 17 00:00:00 2001 From: schulze Date: Wed, 3 May 2023 14:06:32 +0200 Subject: [PATCH] golint warnings --- pcsdk/commands.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcsdk/commands.go b/pcsdk/commands.go index be153de..b9d6d10 100644 --- a/pcsdk/commands.go +++ b/pcsdk/commands.go @@ -92,7 +92,7 @@ type commandCreate struct { IncomingPort uint16 `json:"incoming_port"` DestinationPort uint16 `json:"destination_port"` DestinationIP netip.Addr `json:"destination_ip"` - Id string `json:"id"` + ID string `json:"id"` } func create(iport uint16, oport uint16, oip netip.Addr, id state.CustomUUID) command { @@ -105,7 +105,7 @@ func create(iport uint16, oport uint16, oip netip.Addr, id state.CustomUUID) com type commandModify struct { DestinationPort uint16 `json:"destination_port"` DestinationIP netip.Addr `json:"destination_ip"` - Id string `json:"id"` + ID string `json:"id"` } func modify(oport uint16, oip netip.Addr, id state.CustomUUID) command { @@ -116,7 +116,7 @@ func modify(oport uint16, oip netip.Addr, id state.CustomUUID) command { } type commandDelete struct { - Id string `json:"id"` + ID string `json:"id"` } func delete(id state.CustomUUID) command {