mirror of
https://github.com/prebid/openrtb.git
synced 2026-06-14 22:16:41 +03:00
v14: fix go module
https://blog.golang.org/v2-go-modules Roughly, just a: ```shell find -type f -iname '*.go' | xargs -I {} sed -i 's/mxmCherry\/openrtb/mxmCherry\/openrtb\/v14/g' {} find -type f -iname '*.go' | xargs -I {} goimports -w {} ``` Also, point to pkg.go.dev for documentation (old godoc.org badge kept kill pkg.go.dev provides its own).
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# openrtb [](https://godoc.org/github.com/mxmCherry/openrtb) [](https://travis-ci.org/mxmCherry/openrtb)
|
||||
# openrtb [](https://pkg.go.dev/github.com/mxmCherry/openrtb/v14) [](https://travis-ci.org/mxmCherry/openrtb)
|
||||
|
||||
[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/)
|
||||
|
||||
@@ -18,19 +18,19 @@ This library is tested with Go 1.9+ since [v12.0.0](https://github.com/mxmCherry
|
||||
# Using
|
||||
|
||||
```bash
|
||||
go get -u "github.com/mxmCherry/openrtb/..."
|
||||
go get -u "github.com/mxmCherry/openrtb/v14/..."
|
||||
```
|
||||
|
||||
```go
|
||||
import (
|
||||
openrtb2 "github.com/mxmCherry/openrtb/openrtb2"
|
||||
openrtb2 "github.com/mxmCherry/openrtb/v14/openrtb2"
|
||||
|
||||
openrtb3 "github.com/mxmCherry/openrtb/openrtb3"
|
||||
adcom1 "github.com/mxmCherry/openrtb/adcom1"
|
||||
openrtb3 "github.com/mxmCherry/openrtb/v14/openrtb3"
|
||||
adcom1 "github.com/mxmCherry/openrtb/v14/adcom1"
|
||||
|
||||
native1 "github.com/mxmCherry/openrtb/native1"
|
||||
nreq "github.com/mxmCherry/openrtb/native1/request"
|
||||
nres "github.com/mxmCherry/openrtb/native1/response"
|
||||
native1 "github.com/mxmCherry/openrtb/v14/native1"
|
||||
nreq "github.com/mxmCherry/openrtb/v14/native1/request"
|
||||
nres "github.com/mxmCherry/openrtb/v14/native1/response"
|
||||
)
|
||||
```
|
||||
|
||||
@@ -66,7 +66,7 @@ Pointer | Omitempty | When to use
|
||||
|
||||
Using both pointer and `omitempty` is mostly just to save traffic / generate more "canonical" (strict) JSON.
|
||||
|
||||
## Documentation ([godoc](https://godoc.org/github.com/mxmCherry/openrtb))
|
||||
## Documentation ([pkg.go.dev](https://pkg.go.dev/github.com/mxmCherry/openrtb/v14))
|
||||
- [Godoc: documenting Go code](http://blog.golang.org/godoc-documenting-go-code)
|
||||
- Each entity (type, struct key or constant) should be documented
|
||||
- Comments for entities should be copy-pasted "as-is" from OpenRTB specification (except section 5 - replace "table" with "list" there; ideally, each sentence must be on a new line)
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
# adcom1 [](https://godoc.org/github.com/mxmCherry/openrtb/adcom1)
|
||||
# adcom1 [](https://pkg.go.dev/github.com/mxmCherry/openrtb/v14/adcom1)
|
||||
|
||||
[AdCOM](https://iabtechlab.com/standards/openmedia/) [1.0](https://github.com/InteractiveAdvertisingBureau/AdCOM) types for [Go programming language](https://golang.org/)
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
. "github.com/onsi/ginkgo/extensions/table"
|
||||
. "github.com/onsi/gomega"
|
||||
|
||||
. "github.com/mxmCherry/openrtb/adcom1"
|
||||
. "github.com/mxmCherry/openrtb/v14/adcom1"
|
||||
)
|
||||
|
||||
var _ = DescribeTable(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module github.com/mxmCherry/openrtb
|
||||
module github.com/mxmCherry/openrtb/v14
|
||||
|
||||
go 1.12
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
# native1 [](https://godoc.org/github.com/mxmCherry/openrtb/native1)
|
||||
# native1 [](https://pkg.go.dev/github.com/mxmCherry/openrtb/v14/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/)
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# native1/request [](https://godoc.org/github.com/mxmCherry/openrtb/native1/request)
|
||||
# native1/request [](https://pkg.go.dev/github.com/mxmCherry/openrtb/v14/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/)
|
||||
|
||||
@@ -3,7 +3,7 @@ package request
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/mxmCherry/openrtb/native1"
|
||||
"github.com/mxmCherry/openrtb/v14/native1"
|
||||
)
|
||||
|
||||
// 4.6 Data Object
|
||||
|
||||
@@ -3,7 +3,7 @@ package request
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/mxmCherry/openrtb/native1"
|
||||
"github.com/mxmCherry/openrtb/v14/native1"
|
||||
)
|
||||
|
||||
// 4.7 Event Trackers Request Object
|
||||
|
||||
@@ -3,7 +3,7 @@ package request
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/mxmCherry/openrtb/native1"
|
||||
"github.com/mxmCherry/openrtb/v14/native1"
|
||||
)
|
||||
|
||||
// 4.4 Image Object
|
||||
|
||||
@@ -8,7 +8,7 @@ package request
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/mxmCherry/openrtb/native1"
|
||||
"github.com/mxmCherry/openrtb/v14/native1"
|
||||
)
|
||||
|
||||
// 4.1 Native Markup Request Object
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"io/ioutil"
|
||||
"path/filepath"
|
||||
|
||||
. "github.com/mxmCherry/openrtb/native1/request"
|
||||
. "github.com/mxmCherry/openrtb/v14/native1/request"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/ginkgo/extensions/table"
|
||||
|
||||
@@ -3,7 +3,7 @@ package request
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/mxmCherry/openrtb/native1"
|
||||
"github.com/mxmCherry/openrtb/v14/native1"
|
||||
)
|
||||
|
||||
// 4.5 Video Object
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# native1/response [](https://godoc.org/github.com/mxmCherry/openrtb/native1/response)
|
||||
# native1/response [](https://pkg.go.dev/github.com/mxmCherry/openrtb/v14/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/)
|
||||
|
||||
@@ -3,7 +3,7 @@ package response
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/mxmCherry/openrtb/native1"
|
||||
"github.com/mxmCherry/openrtb/v14/native1"
|
||||
)
|
||||
|
||||
// 5.5 Object: Data
|
||||
|
||||
@@ -3,7 +3,7 @@ package response
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/mxmCherry/openrtb/native1"
|
||||
"github.com/mxmCherry/openrtb/v14/native1"
|
||||
)
|
||||
|
||||
// 5.8 Event Tracker Response Object
|
||||
|
||||
@@ -3,7 +3,7 @@ package response
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/mxmCherry/openrtb/native1"
|
||||
"github.com/mxmCherry/openrtb/v14/native1"
|
||||
)
|
||||
|
||||
// 5.4 Object: Image
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"io/ioutil"
|
||||
"path/filepath"
|
||||
|
||||
. "github.com/mxmCherry/openrtb/native1/response"
|
||||
. "github.com/mxmCherry/openrtb/v14/native1/response"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/ginkgo/extensions/table"
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
# openrtb2 [](https://godoc.org/github.com/mxmCherry/openrtb/openrtb2)
|
||||
# openrtb2 [](https://pkg.go.dev/github.com/mxmCherry/openrtb/v14/openrtb2)
|
||||
|
||||
[OpenRTB](https://iabtechlab.com/standards/openrtb/) [2.5](https://iabtechlab.com/wp-content/uploads/2016/07/OpenRTB-API-Specification-Version-2-5-FINAL.pdf) types for [Go programming language](https://golang.org/)
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"io/ioutil"
|
||||
"path/filepath"
|
||||
|
||||
. "github.com/mxmCherry/openrtb/openrtb2"
|
||||
. "github.com/mxmCherry/openrtb/v14/openrtb2"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/ginkgo/extensions/table"
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"io/ioutil"
|
||||
"path/filepath"
|
||||
|
||||
. "github.com/mxmCherry/openrtb/openrtb2"
|
||||
. "github.com/mxmCherry/openrtb/v14/openrtb2"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/ginkgo/extensions/table"
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
# openrtb3 [](https://godoc.org/github.com/mxmCherry/openrtb/openrtb3)
|
||||
# openrtb3 [](https://pkg.go.dev/github.com/mxmCherry/openrtb/v14/openrtb3)
|
||||
|
||||
[OpenRTB](https://iabtechlab.com/standards/openrtb/) [3.0](https://github.com/InteractiveAdvertisingBureau/openrtb) types for [Go programming language](https://golang.org/)
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"io/ioutil"
|
||||
"path/filepath"
|
||||
|
||||
. "github.com/mxmCherry/openrtb/openrtb3"
|
||||
. "github.com/mxmCherry/openrtb/v14/openrtb3"
|
||||
|
||||
. "github.com/onsi/ginkgo/extensions/table"
|
||||
. "github.com/onsi/gomega"
|
||||
|
||||
Reference in New Issue
Block a user