{"repo":"cloudflare/cloudflare-go","free":true,"listed":false,"github":"https://github.com/cloudflare/cloudflare-go","clone":"git clone https://github.com/cloudflare/cloudflare-go.git","description":"The official Go library for the Cloudflare API","language":"Go","stars":2070,"topics":["api","cloudflare","sdk","sdk-go","sdk-golang"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"Cloudflare Go API Library The Cloudflare Go library provides convenient access to the Cloudflare REST API from applications written in Go. It is generated with Stainless. Installation Or to pin the version: Requirements This library requires Go 1.22+. Usage The full API of this library can be found in api.md. Request fields All request parameters are wrapped in a generic Field type, which we use to distinguish zero values from null or omitted fields. This prevents accidentally sending a zero value if you forget a required parameter, and enables explicitly sending null , false , '' , or 0 on optional parameters. Any field not specified is not sent. To construct fields with values, use the helpers String() , Int() , Float() , or most commonly, the generic FT . To send a null, use NullT , and to send a nonconforming value, use RawT . For example: Response objects All fields in response structs are value types (not pointers or wrappers). If a given field is null , not present, or invalid, the corresponding field will simply be its zero value. All response structs also include a special JSON field, containing more detailed information about each property, which you can use like so: These .JSON structs also include an Extras map containing any properties in the json response that were not specified in the struct. This can be useful for API features not yet present in the SDK. RequestOptions This library uses the functional options pattern. Functions defined in the option package re","default_branch":null,"files":null,"tree":[],"storefront":"/r/cloudflare","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cloudflare/cloudflare-go/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}