diff --git a/README.md b/README.md index b6fe0ff..76d0f11 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# openrtb [![Go Reference](https://pkg.go.dev/badge/github.com/mxmCherry/openrtb/v17.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v17) [![Test](https://github.com/mxmCherry/openrtb/actions/workflows/test.yml/badge.svg)](https://github.com/mxmCherry/openrtb/actions/workflows/test.yml) +# openrtb [![Go Reference](https://pkg.go.dev/badge/github.com/prebid/openrtb/v1.svg)](https://pkg.go.dev/github.com/prebid/openrtb/v1) [![Test](https://github.com/prebid/openrtb/actions/workflows/test.yml/badge.svg)](https://github.com/prebid/openrtb/actions/workflows/test.yml) [OpenRTB](https://iabtechlab.com/standards/openrtb/), [AdCOM](https://iabtechlab.com/standards/openmedia) and [OpenRTB Dynamic Native Ads](https://iabtechlab.com/standards/openrtb-native/) types for [Go programming language](https://golang.org/) @@ -9,30 +9,30 @@ **Requires Go 1.13+** -This library is switched to [Go modules](https://golang.org/ref/mod) ([tl;dr](https://blog.golang.org/using-go-modules)) as of [v14.0.0](https://github.com/mxmCherry/openrtb/releases/tag/v14.0.0), so it requires Go [1.11](https://golang.org/doc/go1.11)+ (older Go versions are not capable of using versioned paths). +This library is switched to [Go modules](https://golang.org/ref/mod) ([tl;dr](https://blog.golang.org/using-go-modules)) as of [v14.0.0](https://github.com/prebid/openrtb/releases/tag/v14.0.0), so it requires Go [1.11](https://golang.org/doc/go1.11)+ (older Go versions are not capable of using versioned paths). Also, [test/matcher library](https://github.com/onsi/gomega) relies on newer Go [error handling approach](https://blog.golang.org/go1.13-errors), so tests require Go [1.13](https://golang.org/doc/go1.13)+. # Using ```bash -go get -u "github.com/mxmCherry/openrtb/v17/..." +go get -u "github.com/prebid/openrtb/v1/..." ``` ```go import ( - openrtb2 "github.com/mxmCherry/openrtb/v17/openrtb2" + openrtb2 "github.com/prebid/openrtb/v1/openrtb2" - openrtb3 "github.com/mxmCherry/openrtb/v17/openrtb3" - adcom1 "github.com/mxmCherry/openrtb/v17/adcom1" + openrtb3 "github.com/prebid/openrtb/v1/openrtb3" + adcom1 "github.com/prebid/openrtb/v1/adcom1" - native1 "github.com/mxmCherry/openrtb/v17/native1" - nreq "github.com/mxmCherry/openrtb/v17/native1/request" - nres "github.com/mxmCherry/openrtb/v17/native1/response" + native1 "github.com/prebid/openrtb/v1/native1" + nreq "github.com/prebid/openrtb/v1/native1/request" + nres "github.com/prebid/openrtb/v1/native1/response" ) ``` -This repo follows [semver](http://semver.org/) - see [releases](https://github.com/mxmCherry/openrtb/releases). +This repo follows [semver](http://semver.org/) - see [releases](https://github.com/prebid/openrtb/releases). The `main` branch always contains latest code, so better use some package manager to vendor specific version. # Guidelines @@ -65,7 +65,7 @@ Pointer | Omitempty | When to use Using both pointer and `omitempty` is mostly just to save traffic / generate more "canonical" (strict) JSON. -## Documentation ([pkg.go.dev](https://pkg.go.dev/github.com/mxmCherry/openrtb/v17)) +## Documentation ([pkg.go.dev](https://pkg.go.dev/github.com/prebid/openrtb/v1)) - [Godoc: documenting Go code](http://blog.golang.org/godoc-documenting-go-code) - Each entity (type, struct key or constant) should be documented - Ideally, copy-paste descriptions as-is, but feel free to omit section numbers, so just ` defines ` diff --git a/adcom1/README.md b/adcom1/README.md index b2591e0..6c43ace 100644 --- a/adcom1/README.md +++ b/adcom1/README.md @@ -1,3 +1,3 @@ -# adcom1 [![GoDoc](https://godoc.org/github.com/mxmCherry/openrtb/adcom1?status.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v17/adcom1) +# adcom1 [![GoDoc](https://godoc.org/github.com/prebid/openrtb/adcom1?status.svg)](https://pkg.go.dev/github.com/prebid/openrtb/v1/adcom1) [AdCOM](https://iabtechlab.com/standards/openmedia/) [1.0](https://github.com/InteractiveAdvertisingBureau/AdCOM) types for [Go programming language](https://golang.org/) diff --git a/adcom1/adcom1_test.go b/adcom1/adcom1_test.go index 3fcdaae..1d2e09f 100644 --- a/adcom1/adcom1_test.go +++ b/adcom1/adcom1_test.go @@ -8,7 +8,7 @@ import ( . "github.com/onsi/ginkgo/extensions/table" . "github.com/onsi/gomega" - . "github.com/mxmCherry/openrtb/v17/adcom1" + . "github.com/prebid/openrtb/v1/adcom1" ) var _ = DescribeTable( diff --git a/go.mod b/go.mod index f84512e..67540e3 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/mxmCherry/openrtb/v17 +module github.com/prebid/openrtb/v1 go 1.16 diff --git a/native1/README.md b/native1/README.md index 9e459a9..367bad8 100644 --- a/native1/README.md +++ b/native1/README.md @@ -1,4 +1,4 @@ -# native1 [![GoDoc](https://godoc.org/github.com/mxmCherry/openrtb/native1?status.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v17/native1) +# native1 [![GoDoc](https://godoc.org/github.com/prebid/openrtb/native1?status.svg)](https://pkg.go.dev/github.com/prebid/openrtb/v1/native1) [OpenRTB Dynamic Native Ads API](https://iabtechlab.com/standards/openrtb-native/) [1.2](https://iabtechlab.com/wp-content/uploads/2016/07/OpenRTB-Native-Ads-Specification-Final-1.2.pdf) section "7 Reference Lists/Enumerations" types for [Go programming language](https://golang.org/) diff --git a/native1/request/README.md b/native1/request/README.md index 3c4380c..1f3f825 100644 --- a/native1/request/README.md +++ b/native1/request/README.md @@ -1,3 +1,3 @@ -# native1/request [![GoDoc](https://godoc.org/github.com/mxmCherry/openrtb/native1/request?status.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v17/native1/request) +# native1/request [![GoDoc](https://godoc.org/github.com/prebid/openrtb/native1/request?status.svg)](https://pkg.go.dev/github.com/prebid/openrtb/v1/native1/request) [OpenRTB Dynamic Native Ads API](https://iabtechlab.com/standards/openrtb-native/) [1.2](https://iabtechlab.com/wp-content/uploads/2016/07/OpenRTB-Native-Ads-Specification-Final-1.2.pdf) section "4 Native Ad Request Markup Details" types for [Go programming language](https://golang.org/) diff --git a/native1/request/data.go b/native1/request/data.go index 17d9f91..eeaf2eb 100644 --- a/native1/request/data.go +++ b/native1/request/data.go @@ -3,7 +3,7 @@ package request import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/native1" + "github.com/prebid/openrtb/v1/native1" ) // 4.6 Data Object diff --git a/native1/request/event_tracker.go b/native1/request/event_tracker.go index 9890f31..b483209 100644 --- a/native1/request/event_tracker.go +++ b/native1/request/event_tracker.go @@ -3,7 +3,7 @@ package request import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/native1" + "github.com/prebid/openrtb/v1/native1" ) // 4.7 Event Trackers Request Object diff --git a/native1/request/image.go b/native1/request/image.go index b5b3299..cc71e1d 100644 --- a/native1/request/image.go +++ b/native1/request/image.go @@ -3,7 +3,7 @@ package request import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/native1" + "github.com/prebid/openrtb/v1/native1" ) // 4.4 Image Object diff --git a/native1/request/request.go b/native1/request/request.go index 4237efa..d0d4655 100644 --- a/native1/request/request.go +++ b/native1/request/request.go @@ -8,7 +8,7 @@ package request import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/native1" + "github.com/prebid/openrtb/v1/native1" ) // 4.1 Native Markup Request Object diff --git a/native1/request/request_test.go b/native1/request/request_test.go index 201a8ac..30e2b43 100644 --- a/native1/request/request_test.go +++ b/native1/request/request_test.go @@ -5,7 +5,7 @@ import ( "io/ioutil" "path/filepath" - . "github.com/mxmCherry/openrtb/v17/native1/request" + . "github.com/prebid/openrtb/v1/native1/request" . "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo/extensions/table" diff --git a/native1/request/video.go b/native1/request/video.go index 5b1910a..c26cb5c 100644 --- a/native1/request/video.go +++ b/native1/request/video.go @@ -1,7 +1,7 @@ package request import ( - "github.com/mxmCherry/openrtb/v17/openrtb2" + "github.com/prebid/openrtb/v1/openrtb2" ) // 4.5 Video Object diff --git a/native1/response/README.md b/native1/response/README.md index e538d3f..86018d9 100644 --- a/native1/response/README.md +++ b/native1/response/README.md @@ -1,3 +1,3 @@ -# native1/response [![GoDoc](https://godoc.org/github.com/mxmCherry/openrtb/native1/response?status.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v17/native1/response) +# native1/response [![GoDoc](https://godoc.org/github.com/prebid/openrtb/native1/response?status.svg)](https://pkg.go.dev/github.com/prebid/openrtb/v1/native1/response) [OpenRTB Dynamic Native Ads API](https://iabtechlab.com/standards/openrtb-native/) [1.2](https://iabtechlab.com/wp-content/uploads/2016/07/OpenRTB-Native-Ads-Specification-Final-1.2.pdf) section "5 Native Ad Response Markup Details" types for [Go programming language](https://golang.org/) diff --git a/native1/response/data.go b/native1/response/data.go index a83990c..dbb80c5 100644 --- a/native1/response/data.go +++ b/native1/response/data.go @@ -3,7 +3,7 @@ package response import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/native1" + "github.com/prebid/openrtb/v1/native1" ) // 5.5 Object: Data diff --git a/native1/response/event_tracker.go b/native1/response/event_tracker.go index 07b1645..254d923 100644 --- a/native1/response/event_tracker.go +++ b/native1/response/event_tracker.go @@ -3,7 +3,7 @@ package response import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/native1" + "github.com/prebid/openrtb/v1/native1" ) // 5.8 Event Tracker Response Object diff --git a/native1/response/image.go b/native1/response/image.go index 411465c..b4a8473 100644 --- a/native1/response/image.go +++ b/native1/response/image.go @@ -3,7 +3,7 @@ package response import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/native1" + "github.com/prebid/openrtb/v1/native1" ) // 5.4 Object: Image diff --git a/native1/response/response_test.go b/native1/response/response_test.go index fb8165b..93aa23c 100644 --- a/native1/response/response_test.go +++ b/native1/response/response_test.go @@ -5,7 +5,7 @@ import ( "io/ioutil" "path/filepath" - . "github.com/mxmCherry/openrtb/v17/native1/response" + . "github.com/prebid/openrtb/v1/native1/response" . "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo/extensions/table" diff --git a/openrtb2/README.md b/openrtb2/README.md index 5629625..2d4efbf 100644 --- a/openrtb2/README.md +++ b/openrtb2/README.md @@ -1,3 +1,3 @@ -# openrtb2 [![GoDoc](https://godoc.org/github.com/mxmCherry/openrtb/openrtb2?status.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v17/openrtb2) +# openrtb2 [![GoDoc](https://godoc.org/github.com/prebid/openrtb/openrtb2?status.svg)](https://pkg.go.dev/github.com/prebid/openrtb/v1/openrtb2) [OpenRTB](https://iabtechlab.com/standards/openrtb/) [2.6](https://iabtechlab.com/wp-content/uploads/2022/04/OpenRTB-2-6_FINAL.pdf) types for [Go programming language](https://golang.org/) diff --git a/openrtb2/app.go b/openrtb2/app.go index 98047fc..7dd7110 100644 --- a/openrtb2/app.go +++ b/openrtb2/app.go @@ -3,7 +3,7 @@ package openrtb2 import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/adcom1" + "github.com/prebid/openrtb/v1/adcom1" ) // 3.2.14 Object: App diff --git a/openrtb2/audio.go b/openrtb2/audio.go index fbb5907..046d1db 100644 --- a/openrtb2/audio.go +++ b/openrtb2/audio.go @@ -3,7 +3,7 @@ package openrtb2 import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/adcom1" + "github.com/prebid/openrtb/v1/adcom1" ) // 3.2.8 Object: Audio diff --git a/openrtb2/banner.go b/openrtb2/banner.go index 9988e95..4fd2b4c 100644 --- a/openrtb2/banner.go +++ b/openrtb2/banner.go @@ -3,7 +3,7 @@ package openrtb2 import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/adcom1" + "github.com/prebid/openrtb/v1/adcom1" ) // 3.2.6 Object: Banner diff --git a/openrtb2/bid.go b/openrtb2/bid.go index 0de1df8..6ba1fd0 100644 --- a/openrtb2/bid.go +++ b/openrtb2/bid.go @@ -3,7 +3,7 @@ package openrtb2 import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/adcom1" + "github.com/prebid/openrtb/v1/adcom1" ) // 4.3.3 Object: Bid diff --git a/openrtb2/bid_request.go b/openrtb2/bid_request.go index 5d9c256..d152c4a 100644 --- a/openrtb2/bid_request.go +++ b/openrtb2/bid_request.go @@ -3,7 +3,7 @@ package openrtb2 import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/adcom1" + "github.com/prebid/openrtb/v1/adcom1" ) // 3.2.1 Object: BidRequest diff --git a/openrtb2/bid_request_test.go b/openrtb2/bid_request_test.go index c47805b..6c938ef 100644 --- a/openrtb2/bid_request_test.go +++ b/openrtb2/bid_request_test.go @@ -5,7 +5,7 @@ import ( "io/ioutil" "path/filepath" - . "github.com/mxmCherry/openrtb/v17/openrtb2" + . "github.com/prebid/openrtb/v1/openrtb2" . "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo/extensions/table" diff --git a/openrtb2/bid_response.go b/openrtb2/bid_response.go index 7df8e78..ae27d17 100644 --- a/openrtb2/bid_response.go +++ b/openrtb2/bid_response.go @@ -3,7 +3,7 @@ package openrtb2 import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/openrtb3" + "github.com/prebid/openrtb/v1/openrtb3" ) // 4.3.1 Object: BidResponse diff --git a/openrtb2/bid_response_test.go b/openrtb2/bid_response_test.go index 17351fb..7194ff7 100644 --- a/openrtb2/bid_response_test.go +++ b/openrtb2/bid_response_test.go @@ -5,7 +5,7 @@ import ( "io/ioutil" "path/filepath" - . "github.com/mxmCherry/openrtb/v17/openrtb2" + . "github.com/prebid/openrtb/v1/openrtb2" . "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo/extensions/table" diff --git a/openrtb2/content.go b/openrtb2/content.go index a8ca331..35e681f 100644 --- a/openrtb2/content.go +++ b/openrtb2/content.go @@ -3,7 +3,7 @@ package openrtb2 import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/adcom1" + "github.com/prebid/openrtb/v1/adcom1" ) // 3.2.16 Object: Content diff --git a/openrtb2/device.go b/openrtb2/device.go index bf1ea9e..8594855 100644 --- a/openrtb2/device.go +++ b/openrtb2/device.go @@ -3,7 +3,7 @@ package openrtb2 import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/adcom1" + "github.com/prebid/openrtb/v1/adcom1" ) // 3.2.18 Object: Device diff --git a/openrtb2/geo.go b/openrtb2/geo.go index e2cbe64..08d6198 100644 --- a/openrtb2/geo.go +++ b/openrtb2/geo.go @@ -3,7 +3,7 @@ package openrtb2 import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/adcom1" + "github.com/prebid/openrtb/v1/adcom1" ) // 3.2.19 Object: Geo diff --git a/openrtb2/native.go b/openrtb2/native.go index 97d81d9..65868f8 100644 --- a/openrtb2/native.go +++ b/openrtb2/native.go @@ -3,7 +3,7 @@ package openrtb2 import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/adcom1" + "github.com/prebid/openrtb/v1/adcom1" ) // 3.2.9 Object: Native diff --git a/openrtb2/producer.go b/openrtb2/producer.go index 2de44b1..ae4d407 100644 --- a/openrtb2/producer.go +++ b/openrtb2/producer.go @@ -3,7 +3,7 @@ package openrtb2 import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/adcom1" + "github.com/prebid/openrtb/v1/adcom1" ) // 3.2.17 Object: Producer diff --git a/openrtb2/publisher.go b/openrtb2/publisher.go index 528cb45..cee8c37 100644 --- a/openrtb2/publisher.go +++ b/openrtb2/publisher.go @@ -3,7 +3,7 @@ package openrtb2 import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/adcom1" + "github.com/prebid/openrtb/v1/adcom1" ) // 3.2.15 Object: Publisher diff --git a/openrtb2/site.go b/openrtb2/site.go index 32b06d1..b7a02a5 100644 --- a/openrtb2/site.go +++ b/openrtb2/site.go @@ -3,7 +3,7 @@ package openrtb2 import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/adcom1" + "github.com/prebid/openrtb/v1/adcom1" ) // 3.2.13 Object: Site diff --git a/openrtb2/uid.go b/openrtb2/uid.go index a4c9384..a745d9a 100644 --- a/openrtb2/uid.go +++ b/openrtb2/uid.go @@ -3,7 +3,7 @@ package openrtb2 import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/adcom1" + "github.com/prebid/openrtb/v1/adcom1" ) // 3.2.28 Object: UID diff --git a/openrtb2/user_agent.go b/openrtb2/user_agent.go index 4e53803..dd69c35 100644 --- a/openrtb2/user_agent.go +++ b/openrtb2/user_agent.go @@ -3,7 +3,7 @@ package openrtb2 import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/adcom1" + "github.com/prebid/openrtb/v1/adcom1" ) // 3.2.29 Object: UserAgent diff --git a/openrtb2/video.go b/openrtb2/video.go index 8e4d87d..a032f01 100644 --- a/openrtb2/video.go +++ b/openrtb2/video.go @@ -3,7 +3,7 @@ package openrtb2 import ( "encoding/json" - "github.com/mxmCherry/openrtb/v17/adcom1" + "github.com/prebid/openrtb/v1/adcom1" ) // 3.2.7 Object: Video diff --git a/openrtb3/README.md b/openrtb3/README.md index 06798fe..d3027c7 100644 --- a/openrtb3/README.md +++ b/openrtb3/README.md @@ -1,3 +1,3 @@ -# openrtb3 [![GoDoc](https://godoc.org/github.com/mxmCherry/openrtb/openrtb3?status.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v17/openrtb3) +# openrtb3 [![GoDoc](https://godoc.org/github.com/prebid/openrtb/openrtb3?status.svg)](https://pkg.go.dev/github.com/prebid/openrtb/v1/openrtb3) [OpenRTB](https://iabtechlab.com/standards/openrtb/) [3.0](https://github.com/InteractiveAdvertisingBureau/openrtb) types for [Go programming language](https://golang.org/) diff --git a/openrtb3/openrtb3_test.go b/openrtb3/openrtb3_test.go index dfce3c0..fd28609 100644 --- a/openrtb3/openrtb3_test.go +++ b/openrtb3/openrtb3_test.go @@ -5,7 +5,7 @@ import ( "io/ioutil" "path/filepath" - . "github.com/mxmCherry/openrtb/v17/openrtb3" + . "github.com/prebid/openrtb/v1/openrtb3" . "github.com/onsi/ginkgo/extensions/table" . "github.com/onsi/gomega"