Run go get, keep CGO_ENABLED=1, and go build compiles the bundled C engine into your binary, with no shared library to install. onpremise.New takes functional options such as WithDataFile and WithAutoUpdate, and Engine.Process matches User-Agent and Sec-CH-UA evidence against a Device Detection data file.
Engines reload from a file or from memory. IP Intelligence runs on-premise or in the cloud, and the Cloud Request Engine reaches Human Confidence and Identifiers in the 51Degrees cloud service. Go 1.19 is the minimum, set by the Prebid Server module that uses this library.
go get github.com/51Degrees/51degrees-go/device-detection/v4
go get github.com/51Degrees/51degrees-go/ip-intelligence/v4
Code and issues: https://github.com/51Degrees/51degrees-go
Documentation: https://51degrees.com/documentation/index.html?utm_source=sourceforge&utm_medium=listing&utm_campaign=51degrees-go&utm_content=description&utm_term=docs
Features
- Device Detection compiled in by cgo, with no separate library
- Functional options on onpremise.New
- IP Intelligence engines for on-premise and cloud
- Reload from a file or from memory
- Pipeline module with custom elements, caching, and usage sharing
- Cloud Request Engine for Human Confidence and Identifiers
- Calls the 51Degrees cloud service over HTTP
- Go 1.19 or later
- EUPL 1.2 source