From c4775c42510d1f1ddd55036dc19e982712fa6a0b Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sat, 7 Jul 2018 13:48:38 +0900 Subject: follow Standard Go Project Layout https://github.com/golang-standards/project-layout Now you can see clearly what are private and public library code. Signed-off-by: FUJITA Tomonori --- api/attribute.go | 3 +-- api/attribute_test.go | 3 +-- api/capability.go | 3 +-- api/capability_test.go | 3 +-- api/util.go | 2 +- 5 files changed, 5 insertions(+), 9 deletions(-) (limited to 'api') diff --git a/api/attribute.go b/api/attribute.go index 65ca6a4f..c4ac1375 100644 --- a/api/attribute.go +++ b/api/attribute.go @@ -22,9 +22,8 @@ import ( "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptypes" "github.com/golang/protobuf/ptypes/any" + "github.com/osrg/gobgp/pkg/packet/bgp" log "github.com/sirupsen/logrus" - - "github.com/osrg/gobgp/packet/bgp" ) func NewOriginAttributeFromNative(a *bgp.PathAttributeOrigin) *OriginAttribute { diff --git a/api/attribute_test.go b/api/attribute_test.go index 271b0191..72b20bf1 100644 --- a/api/attribute_test.go +++ b/api/attribute_test.go @@ -19,10 +19,9 @@ import ( "net" "testing" - "github.com/osrg/gobgp/packet/bgp" - "github.com/golang/protobuf/ptypes" "github.com/golang/protobuf/ptypes/any" + "github.com/osrg/gobgp/pkg/packet/bgp" "github.com/stretchr/testify/assert" ) diff --git a/api/capability.go b/api/capability.go index 80e16c6f..15231bbb 100644 --- a/api/capability.go +++ b/api/capability.go @@ -21,8 +21,7 @@ import ( proto "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptypes" "github.com/golang/protobuf/ptypes/any" - - "github.com/osrg/gobgp/packet/bgp" + "github.com/osrg/gobgp/pkg/packet/bgp" ) func NewMultiProtocolCapability(a *bgp.CapMultiProtocol) *MultiProtocolCapability { diff --git a/api/capability_test.go b/api/capability_test.go index e092c836..a0c34db1 100644 --- a/api/capability_test.go +++ b/api/capability_test.go @@ -18,9 +18,8 @@ package gobgpapi import ( "testing" + "github.com/osrg/gobgp/pkg/packet/bgp" "github.com/stretchr/testify/assert" - - "github.com/osrg/gobgp/packet/bgp" ) func Test_MultiProtocolCapability(t *testing.T) { diff --git a/api/util.go b/api/util.go index b77b35ec..c06484c0 100644 --- a/api/util.go +++ b/api/util.go @@ -20,7 +20,7 @@ import ( "net" "time" - "github.com/osrg/gobgp/packet/bgp" + "github.com/osrg/gobgp/pkg/packet/bgp" ) func getNLRI(family bgp.RouteFamily, buf []byte) (bgp.AddrPrefixInterface, error) { -- cgit v1.2.3