SDKs
...
Go SDK
v1 (legacy)
Common
5min
licensespring’s new go sdk v2 docid\ rdjt5fz zkosghd5jso9c is now available! this version is a complete rewrite with breaking changes and will receive all future updates and support the legacy go sdk (v1) is deprecated and maintained for backward compatibility only new users should use v2 go sdk is divided into 3 clients floating client license client management client response types there are 3 response wrapper types these are used for future extendability and ease of use client response management response searchresult error client response response type is used by all 3 clients, and it's a generic wrapper for any request type response\[t any] struct { 	payload \[]byte // raw response json 	value t // typed value 	error error // error, if it exists } as an example, license client activatelicense would return client response\[licenseresponse], so response value would be of type licenseresponse example resp = client activatelicense(context background(), ) // access licenseresponse fields resp value licensekey // or get whole licenseresponse struct license = resp value license licensekey management response searchresult searchresult is used only in management client to wrap search/list request responses for example, for listcustomers request error error type is commonly used as response for delete requests, e g deletecustomer