dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts@v1.0.2/README.md (about) 1 # go-mod-core-contracts 2 [](https://jenkins.edgexfoundry.org/view/EdgeX%20Foundry%20Project/job/edgexfoundry/job/go-mod-core-contracts/job/main/) [](https://codecov.io/gh/edgexfoundry/go-mod-core-contracts) [](https://goreportcard.com/report/github.com/edgexfoundry/go-mod-core-contracts) [](https://github.com/edgexfoundry/go-mod-core-contracts/tags)  [](https://choosealicense.com/licenses/apache-2.0/)  [](https://github.com/edgexfoundry/go-mod-core-contracts/pulls) [](https://github.com/edgexfoundry/go-mod-core-contracts/contributors) [](https://github.com/orgs/edgexfoundry/teams/go-mod-core-contracts-committers/members) [](https://github.com/edgexfoundry/go-mod-core-contracts/commits) 3 4 This module contains the contract models used to describe data as it is passed via Request/Response between various 5 EdgeX Foundry services. It also contains service clients for each service within the 6 [edgex-go](https://github.com/edgexfoundry/edgex-go) repository. The definition of the various models and clients can 7 be found in their respective top-level directories. 8 9 The default encoding for the models is JSON, although in at least one case -- 10 [DeviceProfile](https://github.com/edgexfoundry/go-mod-core-contracts/blob/master/models/deviceprofile.go) -- 11 YAML encoding is also supported since a device profile is defined as a YAML document. 12 13 ### Installation ### 14 * Make sure you're using at least Go 1.11.1 (EdgeX currently uses Go 1.17.x) and have modules enabled, i.e. have an initialized go.mod file 15 * If your code is in your GOPATH then make sure ```GO111MODULE=on``` is set 16 * Run ```go get github.com/edgexfoundry/go-mod-core-contracts``` 17 * This will add the go-mod-core-contracts to the go.mod file and download it into the module cache