mirror of https://github.com/docker/docs.git
Merge pull request #11209 from fhemberger/patch-1
examples.md: Actually use `ctx` variable in Go example
This commit is contained in:
commit
8dea3a7055
|
|
@ -245,7 +245,7 @@ func main() {
|
|||
panic(err)
|
||||
}
|
||||
|
||||
containers, err := cli.ContainerList(context.Background(), types.ContainerListOptions{})
|
||||
containers, err := cli.ContainerList(ctx, types.ContainerListOptions{})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue