diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-07-07 13:48:38 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-07-07 20:44:25 +0900 |
commit | c4775c42510d1f1ddd55036dc19e982712fa6a0b (patch) | |
tree | 6ec8b61d4338c809e239e3003a2d32d480898e22 /api | |
parent | b3079759aa13172fcb548a83da9a9653d8d5fed4 (diff) |
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 <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'api')
-rw-r--r-- | api/attribute.go | 3 | ||||
-rw-r--r-- | api/attribute_test.go | 3 | ||||
-rw-r--r-- | api/capability.go | 3 | ||||
-rw-r--r-- | api/capability_test.go | 3 | ||||
-rw-r--r-- | api/util.go | 2 |
5 files changed, 5 insertions, 9 deletions
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) { |