mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
client: fix example in README (align with ExampleNew())
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
committed by
Albin Kerouanton
parent
8f572f33fd
commit
2729703967
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user