go get github.com/speakeasy-sdks/test-issue-sample-sdk
package main
import (
"context"
testissuesamplesdk "github.com/speakeasy-sdks/test-issue-sample-sdk"
"log"
)
func main() {
s := testissuesamplesdk.New()
ctx := context.Background()
res, err := s.Pets.CreatePets(ctx)
if err != nil {
log.Fatal(err)
}
if res.StatusCode == http.StatusOK {
// handle response
}
}
- CreatePets - Create a pet
- ListPets - List all pets
- ShowPetByID - Info for a specific pet
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.
While we value open-source contributions to this SDK, this library is generated programmatically. Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!