github.com/prebid/prebid-server/v2@v2.18.0/privacy/gdpr/validate.go (about) 1 package gdpr 2 3 import ( 4 "github.com/prebid/go-gdpr/vendorconsent" 5 ) 6 7 // ValidateConsent returns true if the consent string is empty or valid per the IAB TCF spec. 8 func ValidateConsent(consent string) bool { 9 _, err := vendorconsent.ParseString(consent) 10 return err == nil 11 }