diff --git a/examples/golang-simplegenerate/main.go b/examples/golang-simplegenerate/main.go index 26e3bc6d..f4ca32f4 100644 --- a/examples/golang-simplegenerate/main.go +++ b/examples/golang-simplegenerate/main.go @@ -18,6 +18,8 @@ func main() { os.Exit(1) } + defer resp.Body.Close() + responseData, err := io.ReadAll(resp.Body) if err != nil { log.Fatal(err)