Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update go module to v3, to match version tag #36

Merged
merged 1 commit into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion audio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

. "github.com/UnityTech/openrtb"
. "github.com/UnityTech/openrtb/v3"
)

func TestAudio(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion banner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

. "github.com/UnityTech/openrtb"
. "github.com/UnityTech/openrtb/v3"
)

func TestBanner(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion bid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

. "github.com/UnityTech/openrtb"
. "github.com/UnityTech/openrtb/v3"
)

func TestBid(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion bidrequest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

. "github.com/UnityTech/openrtb"
. "github.com/UnityTech/openrtb/v3"
)

func TestBidRequest(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion bidresponse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

. "github.com/UnityTech/openrtb"
. "github.com/UnityTech/openrtb/v3"
)

func TestBidResponse(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion content_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

. "github.com/UnityTech/openrtb"
. "github.com/UnityTech/openrtb/v3"
)

func TestContent(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion device_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

. "github.com/UnityTech/openrtb"
. "github.com/UnityTech/openrtb/v3"
)

func TestDevice(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion extension_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

. "github.com/UnityTech/openrtb"
. "github.com/UnityTech/openrtb/v3"
)

func TestExtension(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/UnityTech/openrtb
module github.com/UnityTech/openrtb/v3

go 1.13
go 1.18
2 changes: 1 addition & 1 deletion impression_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

. "github.com/UnityTech/openrtb"
. "github.com/UnityTech/openrtb/v3"
)

func TestImpression(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion inventory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

. "github.com/UnityTech/openrtb"
. "github.com/UnityTech/openrtb/v3"
)

func TestApp(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion metric_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

. "github.com/UnityTech/openrtb"
. "github.com/UnityTech/openrtb/v3"
)

func TestMetric(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion native/request/asset.go
Original file line number Diff line number Diff line change
@@ -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}
Expand Down
2 changes: 1 addition & 1 deletion native/request/data.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package request

import "github.com/UnityTech/openrtb"
import "github.com/UnityTech/openrtb/v3"

// DataTypeID enum.
type DataTypeID int
Expand Down
2 changes: 1 addition & 1 deletion native/request/image.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package request

import "github.com/UnityTech/openrtb"
import "github.com/UnityTech/openrtb/v3"

// ImageTypeID enum.
type ImageTypeID int
Expand Down
2 changes: 1 addition & 1 deletion native/request/request.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package request

import "github.com/UnityTech/openrtb"
import "github.com/UnityTech/openrtb/v3"

// LayoutID enum.
type LayoutID int
Expand Down
4 changes: 2 additions & 2 deletions native/request/request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion native/request/title.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion native/request/video.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion native/response/asset.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion native/response/data.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion native/response/image.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion native/response/link.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion native/response/response.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion native/response/response_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion native/response/title.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package response

import "github.com/UnityTech/openrtb"
import "github.com/UnityTech/openrtb/v3"

// Title wraps title information.
type Title struct {
Expand Down
2 changes: 1 addition & 1 deletion native_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

. "github.com/UnityTech/openrtb"
. "github.com/UnityTech/openrtb/v3"
)

func TestNative(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion numbers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

. "github.com/UnityTech/openrtb"
. "github.com/UnityTech/openrtb/v3"
)

func TestNumberOrString(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pmp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"reflect"
"testing"

. "github.com/UnityTech/openrtb"
. "github.com/UnityTech/openrtb/v3"
)

func TestPMP(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion quantity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

. "github.com/UnityTech/openrtb"
. "github.com/UnityTech/openrtb/v3"
)

func TestQuantity(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion seatbid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"testing"

. "github.com/UnityTech/openrtb"
. "github.com/UnityTech/openrtb/v3"
)

func TestSeatBid_Validate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

. "github.com/UnityTech/openrtb"
. "github.com/UnityTech/openrtb/v3"
)

func TestSource(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion video_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

. "github.com/UnityTech/openrtb"
. "github.com/UnityTech/openrtb/v3"
)

func TestVideo(t *testing.T) {
Expand Down
Loading