Skip to content

OpenRTB protocol definitions and DTOs for Golang. Parsed/Serialized with EasyJSON

License

Notifications You must be signed in to change notification settings

stokito/openrtb-easyjson

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenRTB

OpenRTB protocol definitions and DTOs for Golang. Parsed/Serialized with EasyJSON. Based on https://github.com/bsm/openrtb

Requirements

Requires Go 1.17

Installation

To install, use go get:

go get -u github.com/stokito/openrtb-easyjson/v3@v3.5.1

Usage

package main

import (
  "log"
  "github.com/stokito/openrtb-easyjson/v3"
)

func main() {
  file, err := os.Open("stored.json")
  if err != nil {
    log.Fatal(err)
  }
  defer file.Close()

  bidReq := &openrtb.BidRequest{}
  err = easyjson.Unmarshal(file, bidReq)
  if err != nil {
    log.Fatal(err)
  }

  log.Printf("%+v\n", bidReq)
}

About

OpenRTB protocol definitions and DTOs for Golang. Parsed/Serialized with EasyJSON

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.7%
  • Makefile 0.3%