client: fix example in README (align with ExampleNew())

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-11-12 17:18:09 +01:00
committed by Albin Kerouanton
parent 8f572f33fd
commit 2729703967
3 changed files with 25 additions and 6 deletions

View File

@@ -17,6 +17,7 @@ func ExampleNew() {
if err != nil {
log.Fatal(err)
}
defer apiClient.Close()
// List all containers (both stopped and running).
result, err := apiClient.ContainerList(context.Background(), client.ContainerListOptions{