Skip to content

Commit

Permalink
Merge pull request #12 from jsaltermedialab/master
Browse files Browse the repository at this point in the history
adds module support and fix readme examples
  • Loading branch information
SyntaxNode authored Aug 7, 2020
2 parents 586171f + 06b5114 commit 475ddb5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ func DemoConsentStringParsing() {
log.Printf("This consent string refers to version %d of the Global Vendor List.", consent.VendorListVersion())
log.Printf("Vendor %d has the user's consent? %t", 3, consent.VendorConsent(3))
}

func main() {
DemoConsentStringParsing()
}
```

### Vendor List Parsing
Expand Down Expand Up @@ -66,6 +70,10 @@ func DemoVendorListParsing() {
log.Printf("Did Vendor 3 claim to store or retrieve info? %t", vendor.Purpose(consentconstants.InfoStorageAccess))
}
}

func main() {
DemoVendorListParsing()
}
```

## Contributing
Expand Down
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/prebid/go-gdpr

go 1.13

require github.com/buger/jsonparser v0.0.0-20180318095312-2cac668e8456
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/buger/jsonparser v0.0.0-20180318095312-2cac668e8456 h1:SnUWpAH4lEUoS86woR12h21VMUbDe+DYp88V646wwMI=
github.com/buger/jsonparser v0.0.0-20180318095312-2cac668e8456/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s=

0 comments on commit 475ddb5

Please sign in to comment.