diff --git a/README.md b/README.md index 12f487b..2485a67 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Requires Go 1.8+ for proper `json.RawMessage` marshaling. To install, use `go get`: ```shell -go get github.com/UnityTech/openrtb +go get github.com/UnityTech/openrtb/v3 ``` ## Usage @@ -22,9 +22,11 @@ go get github.com/UnityTech/openrtb package main import ( + "encoding/json" "log" + "os" - "github.com/UnityTech/openrtb" + "github.com/UnityTech/openrtb/v3" ) func main() { diff --git a/audio_test.go b/audio_test.go index 6cd95bd..d6ccf58 100644 --- a/audio_test.go +++ b/audio_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - . "github.com/UnityTech/openrtb" + . "github.com/UnityTech/openrtb/v3" ) func TestAudio(t *testing.T) { diff --git a/banner_test.go b/banner_test.go index 8ed96f9..72b5c93 100644 --- a/banner_test.go +++ b/banner_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - . "github.com/UnityTech/openrtb" + . "github.com/UnityTech/openrtb/v3" ) func TestBanner(t *testing.T) { diff --git a/bid_test.go b/bid_test.go index 46b4492..9836be8 100644 --- a/bid_test.go +++ b/bid_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - . "github.com/UnityTech/openrtb" + . "github.com/UnityTech/openrtb/v3" ) func TestBid(t *testing.T) { diff --git a/bidrequest_test.go b/bidrequest_test.go index b2630ba..bbb9023 100644 --- a/bidrequest_test.go +++ b/bidrequest_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - . "github.com/UnityTech/openrtb" + . "github.com/UnityTech/openrtb/v3" ) func TestBidRequest(t *testing.T) { diff --git a/bidresponse_test.go b/bidresponse_test.go index d858f57..21b86dc 100644 --- a/bidresponse_test.go +++ b/bidresponse_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - . "github.com/UnityTech/openrtb" + . "github.com/UnityTech/openrtb/v3" ) func TestBidResponse(t *testing.T) { diff --git a/content_test.go b/content_test.go index d02e9f8..289ca62 100644 --- a/content_test.go +++ b/content_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - . "github.com/UnityTech/openrtb" + . "github.com/UnityTech/openrtb/v3" ) func TestContent(t *testing.T) { diff --git a/device_test.go b/device_test.go index 14a41d1..d7f8b95 100644 --- a/device_test.go +++ b/device_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - . "github.com/UnityTech/openrtb" + . "github.com/UnityTech/openrtb/v3" ) func TestDevice(t *testing.T) { diff --git a/extension_test.go b/extension_test.go index 2c4b407..70de18d 100644 --- a/extension_test.go +++ b/extension_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - . "github.com/UnityTech/openrtb" + . "github.com/UnityTech/openrtb/v3" ) func TestExtension(t *testing.T) { diff --git a/go.mod b/go.mod index 305b62c..204a70e 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/UnityTech/openrtb +module github.com/UnityTech/openrtb/v3 -go 1.13 +go 1.18 diff --git a/impression_test.go b/impression_test.go index 7498c4a..6a1cc2b 100644 --- a/impression_test.go +++ b/impression_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - . "github.com/UnityTech/openrtb" + . "github.com/UnityTech/openrtb/v3" ) func TestImpression(t *testing.T) { diff --git a/inventory_test.go b/inventory_test.go index dfbfa60..4bda401 100644 --- a/inventory_test.go +++ b/inventory_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - . "github.com/UnityTech/openrtb" + . "github.com/UnityTech/openrtb/v3" ) func TestApp(t *testing.T) { diff --git a/metric_test.go b/metric_test.go index e6d1522..3f256ec 100644 --- a/metric_test.go +++ b/metric_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - . "github.com/UnityTech/openrtb" + . "github.com/UnityTech/openrtb/v3" ) func TestMetric(t *testing.T) { diff --git a/native/request/asset.go b/native/request/asset.go index 43024da..136ea25 100644 --- a/native/request/asset.go +++ b/native/request/asset.go @@ -1,6 +1,6 @@ package request -import "github.com/UnityTech/openrtb" +import "github.com/UnityTech/openrtb/v3" // Asset is the main container object for each asset requested or supported by Exchange // on behalf of the rendering client. Only one of the {title,img,video,data} diff --git a/native/request/data.go b/native/request/data.go index 39e677f..66a86e2 100644 --- a/native/request/data.go +++ b/native/request/data.go @@ -1,6 +1,6 @@ package request -import "github.com/UnityTech/openrtb" +import "github.com/UnityTech/openrtb/v3" // DataTypeID enum. type DataTypeID int diff --git a/native/request/image.go b/native/request/image.go index dc7de3f..8f950d7 100644 --- a/native/request/image.go +++ b/native/request/image.go @@ -1,6 +1,6 @@ package request -import "github.com/UnityTech/openrtb" +import "github.com/UnityTech/openrtb/v3" // ImageTypeID enum. type ImageTypeID int diff --git a/native/request/request.go b/native/request/request.go index 924dfa2..8946010 100644 --- a/native/request/request.go +++ b/native/request/request.go @@ -1,6 +1,6 @@ package request -import "github.com/UnityTech/openrtb" +import "github.com/UnityTech/openrtb/v3" // LayoutID enum. type LayoutID int diff --git a/native/request/request_test.go b/native/request/request_test.go index 48f2cd5..8bd33c2 100644 --- a/native/request/request_test.go +++ b/native/request/request_test.go @@ -6,8 +6,8 @@ import ( "reflect" "testing" - "github.com/UnityTech/openrtb" - . "github.com/UnityTech/openrtb/native/request" + "github.com/UnityTech/openrtb/v3" + . "github.com/UnityTech/openrtb/v3/native/request" ) func TestRequest(t *testing.T) { diff --git a/native/request/title.go b/native/request/title.go index 48ddb16..bdaa000 100644 --- a/native/request/title.go +++ b/native/request/title.go @@ -1,6 +1,6 @@ package request -import "github.com/UnityTech/openrtb" +import "github.com/UnityTech/openrtb/v3" // Title is the native title object. type Title struct { diff --git a/native/request/video.go b/native/request/video.go index 9d9edeb..a59cb65 100644 --- a/native/request/video.go +++ b/native/request/video.go @@ -1,6 +1,6 @@ package request -import "github.com/UnityTech/openrtb" +import "github.com/UnityTech/openrtb/v3" // Video is the native video object. // TODO unclear if its the same as imp.video https://github.com/openrtb/OpenRTB/issues/26 diff --git a/native/response/asset.go b/native/response/asset.go index b1efd2d..d0846a0 100644 --- a/native/response/asset.go +++ b/native/response/asset.go @@ -1,6 +1,6 @@ package response -import "github.com/UnityTech/openrtb" +import "github.com/UnityTech/openrtb/v3" // Asset corresponds to the Asset Object in the request. The main container object for // each asset requested or supported by Exchange on behalf of the rendering diff --git a/native/response/data.go b/native/response/data.go index 8736074..b90136e 100644 --- a/native/response/data.go +++ b/native/response/data.go @@ -1,6 +1,6 @@ package response -import "github.com/UnityTech/openrtb" +import "github.com/UnityTech/openrtb/v3" // Data object contains response data. type Data struct { diff --git a/native/response/image.go b/native/response/image.go index eb49c3b..276f250 100644 --- a/native/response/image.go +++ b/native/response/image.go @@ -1,6 +1,6 @@ package response -import "github.com/UnityTech/openrtb" +import "github.com/UnityTech/openrtb/v3" // Image object contains response image. type Image struct { diff --git a/native/response/link.go b/native/response/link.go index 7abb0f7..5bf5798 100644 --- a/native/response/link.go +++ b/native/response/link.go @@ -1,6 +1,6 @@ package response -import "github.com/UnityTech/openrtb" +import "github.com/UnityTech/openrtb/v3" // Link object contains response link. type Link struct { diff --git a/native/response/response.go b/native/response/response.go index 7305815..9d6ea06 100644 --- a/native/response/response.go +++ b/native/response/response.go @@ -1,6 +1,6 @@ package response -import "github.com/UnityTech/openrtb" +import "github.com/UnityTech/openrtb/v3" // Response is the native object is the top level JSON object which identifies a native response. type Response struct { diff --git a/native/response/response_test.go b/native/response/response_test.go index 6e102ea..908524d 100644 --- a/native/response/response_test.go +++ b/native/response/response_test.go @@ -6,7 +6,7 @@ import ( "reflect" "testing" - . "github.com/UnityTech/openrtb/native/response" + . "github.com/UnityTech/openrtb/v3/native/response" ) func TestResponse(t *testing.T) { diff --git a/native/response/title.go b/native/response/title.go index 873aaf7..fda13d3 100644 --- a/native/response/title.go +++ b/native/response/title.go @@ -1,6 +1,6 @@ package response -import "github.com/UnityTech/openrtb" +import "github.com/UnityTech/openrtb/v3" // Title wraps title information. type Title struct { diff --git a/native_test.go b/native_test.go index fe9e2b1..57e43cf 100644 --- a/native_test.go +++ b/native_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - . "github.com/UnityTech/openrtb" + . "github.com/UnityTech/openrtb/v3" ) func TestNative(t *testing.T) { diff --git a/numbers_test.go b/numbers_test.go index 9079a07..543ad6c 100644 --- a/numbers_test.go +++ b/numbers_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - . "github.com/UnityTech/openrtb" + . "github.com/UnityTech/openrtb/v3" ) func TestNumberOrString(t *testing.T) { diff --git a/pmp_test.go b/pmp_test.go index 6e55d02..7a2b690 100644 --- a/pmp_test.go +++ b/pmp_test.go @@ -6,7 +6,7 @@ import ( "reflect" "testing" - . "github.com/UnityTech/openrtb" + . "github.com/UnityTech/openrtb/v3" ) func TestPMP(t *testing.T) { diff --git a/quantity_test.go b/quantity_test.go index d22bc4f..54a1e41 100644 --- a/quantity_test.go +++ b/quantity_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - . "github.com/UnityTech/openrtb" + . "github.com/UnityTech/openrtb/v3" ) func TestQuantity(t *testing.T) { diff --git a/seatbid_test.go b/seatbid_test.go index f768c1c..fcb2f09 100644 --- a/seatbid_test.go +++ b/seatbid_test.go @@ -4,7 +4,7 @@ import ( "errors" "testing" - . "github.com/UnityTech/openrtb" + . "github.com/UnityTech/openrtb/v3" ) func TestSeatBid_Validate(t *testing.T) { diff --git a/source_test.go b/source_test.go index 2bfb2b1..d4f9f3f 100644 --- a/source_test.go +++ b/source_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - . "github.com/UnityTech/openrtb" + . "github.com/UnityTech/openrtb/v3" ) func TestSource(t *testing.T) { diff --git a/video_test.go b/video_test.go index e3f7a98..8f8f5cf 100644 --- a/video_test.go +++ b/video_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - . "github.com/UnityTech/openrtb" + . "github.com/UnityTech/openrtb/v3" ) func TestVideo(t *testing.T) {