From d372b4efe26650dbc83908ca0bbee38d90aed3e9 Mon Sep 17 00:00:00 2001 From: Ondrej Fabry Date: Fri, 17 Apr 2020 14:29:26 +0200 Subject: Format generated Go source code in-process This commit: - removes dependency on gofmt tool - cleans up package imports - re-generates binapi for VPP 20.01 Change-Id: Ie4347720f92a87eb278be66c9f9ed9719c7bbbc3 Signed-off-by: Ondrej Fabry --- examples/binapi/af_packet/af_packet.ba.go | 9 +++++---- examples/binapi/ethernet_types/ethernet_types.ba.go | 9 +++++---- examples/binapi/interface_types/interface_types.ba.go | 9 +++++---- examples/binapi/interfaces/interfaces.ba.go | 9 +++++---- examples/binapi/ip/ip.ba.go | 9 +++++---- examples/binapi/ip_types/ip_types.ba.go | 9 +++++---- examples/binapi/memclnt/memclnt.ba.go | 9 +++++---- examples/binapi/memif/memif.ba.go | 9 +++++---- examples/binapi/vpe/vpe.ba.go | 9 +++++---- examples/binapi/vpe_types/vpe_types.ba.go | 9 +++++---- 10 files changed, 50 insertions(+), 40 deletions(-) (limited to 'examples') diff --git a/examples/binapi/af_packet/af_packet.ba.go b/examples/binapi/af_packet/af_packet.ba.go index 6f50f22..9660114 100644 --- a/examples/binapi/af_packet/af_packet.ba.go +++ b/examples/binapi/af_packet/af_packet.ba.go @@ -13,12 +13,13 @@ It consists of: package af_packet import ( - bytes "bytes" - context "context" + "bytes" + "context" + "io" + "strconv" + api "git.fd.io/govpp.git/api" struc "github.com/lunixbochs/struc" - io "io" - strconv "strconv" ethernet_types "git.fd.io/govpp.git/examples/binapi/ethernet_types" interface_types "git.fd.io/govpp.git/examples/binapi/interface_types" diff --git a/examples/binapi/ethernet_types/ethernet_types.ba.go b/examples/binapi/ethernet_types/ethernet_types.ba.go index c7f836b..fffa6b1 100644 --- a/examples/binapi/ethernet_types/ethernet_types.ba.go +++ b/examples/binapi/ethernet_types/ethernet_types.ba.go @@ -10,12 +10,13 @@ It consists of: package ethernet_types import ( - bytes "bytes" - context "context" + "bytes" + "context" + "io" + "strconv" + api "git.fd.io/govpp.git/api" struc "github.com/lunixbochs/struc" - io "io" - strconv "strconv" ) const ( diff --git a/examples/binapi/interface_types/interface_types.ba.go b/examples/binapi/interface_types/interface_types.ba.go index c1becad..a9a34d1 100644 --- a/examples/binapi/interface_types/interface_types.ba.go +++ b/examples/binapi/interface_types/interface_types.ba.go @@ -11,12 +11,13 @@ It consists of: package interface_types import ( - bytes "bytes" - context "context" + "bytes" + "context" + "io" + "strconv" + api "git.fd.io/govpp.git/api" struc "github.com/lunixbochs/struc" - io "io" - strconv "strconv" ) const ( diff --git a/examples/binapi/interfaces/interfaces.ba.go b/examples/binapi/interfaces/interfaces.ba.go index 45fd4d2..7d4031f 100644 --- a/examples/binapi/interfaces/interfaces.ba.go +++ b/examples/binapi/interfaces/interfaces.ba.go @@ -15,12 +15,13 @@ It consists of: package interfaces import ( - bytes "bytes" - context "context" + "bytes" + "context" + "io" + "strconv" + api "git.fd.io/govpp.git/api" struc "github.com/lunixbochs/struc" - io "io" - strconv "strconv" ethernet_types "git.fd.io/govpp.git/examples/binapi/ethernet_types" interface_types "git.fd.io/govpp.git/examples/binapi/interface_types" diff --git a/examples/binapi/ip/ip.ba.go b/examples/binapi/ip/ip.ba.go index 0661dc5..f02cc9e 100644 --- a/examples/binapi/ip/ip.ba.go +++ b/examples/binapi/ip/ip.ba.go @@ -15,12 +15,13 @@ It consists of: package ip import ( - bytes "bytes" - context "context" + "bytes" + "context" + "io" + "strconv" + api "git.fd.io/govpp.git/api" struc "github.com/lunixbochs/struc" - io "io" - strconv "strconv" ethernet_types "git.fd.io/govpp.git/examples/binapi/ethernet_types" interface_types "git.fd.io/govpp.git/examples/binapi/interface_types" diff --git a/examples/binapi/ip_types/ip_types.ba.go b/examples/binapi/ip_types/ip_types.ba.go index 1812746..e812b8b 100644 --- a/examples/binapi/ip_types/ip_types.ba.go +++ b/examples/binapi/ip_types/ip_types.ba.go @@ -13,12 +13,13 @@ It consists of: package ip_types import ( - bytes "bytes" - context "context" + "bytes" + "context" + "io" + "strconv" + api "git.fd.io/govpp.git/api" struc "github.com/lunixbochs/struc" - io "io" - strconv "strconv" ) const ( diff --git a/examples/binapi/memclnt/memclnt.ba.go b/examples/binapi/memclnt/memclnt.ba.go index 5c8d1eb..a3ca389 100644 --- a/examples/binapi/memclnt/memclnt.ba.go +++ b/examples/binapi/memclnt/memclnt.ba.go @@ -12,12 +12,13 @@ It consists of: package memclnt import ( - bytes "bytes" - context "context" + "bytes" + "context" + "io" + "strconv" + api "git.fd.io/govpp.git/api" struc "github.com/lunixbochs/struc" - io "io" - strconv "strconv" ) const ( diff --git a/examples/binapi/memif/memif.ba.go b/examples/binapi/memif/memif.ba.go index c4434c4..2388cc2 100644 --- a/examples/binapi/memif/memif.ba.go +++ b/examples/binapi/memif/memif.ba.go @@ -13,12 +13,13 @@ It consists of: package memif import ( - bytes "bytes" - context "context" + "bytes" + "context" + "io" + "strconv" + api "git.fd.io/govpp.git/api" struc "github.com/lunixbochs/struc" - io "io" - strconv "strconv" ethernet_types "git.fd.io/govpp.git/examples/binapi/ethernet_types" interface_types "git.fd.io/govpp.git/examples/binapi/interface_types" diff --git a/examples/binapi/vpe/vpe.ba.go b/examples/binapi/vpe/vpe.ba.go index e95cf30..48b6389 100644 --- a/examples/binapi/vpe/vpe.ba.go +++ b/examples/binapi/vpe/vpe.ba.go @@ -14,12 +14,13 @@ It consists of: package vpe import ( - bytes "bytes" - context "context" + "bytes" + "context" + "io" + "strconv" + api "git.fd.io/govpp.git/api" struc "github.com/lunixbochs/struc" - io "io" - strconv "strconv" vpe_types "git.fd.io/govpp.git/examples/binapi/vpe_types" ) diff --git a/examples/binapi/vpe_types/vpe_types.ba.go b/examples/binapi/vpe_types/vpe_types.ba.go index c937c8f..dbe81e0 100644 --- a/examples/binapi/vpe_types/vpe_types.ba.go +++ b/examples/binapi/vpe_types/vpe_types.ba.go @@ -12,12 +12,13 @@ It consists of: package vpe_types import ( - bytes "bytes" - context "context" + "bytes" + "context" + "io" + "strconv" + api "git.fd.io/govpp.git/api" struc "github.com/lunixbochs/struc" - io "io" - strconv "strconv" ) const ( -- cgit 1.2.3-korg