import ( "github.com/docker/docker/engine" "github.com/docker/docker/engine/env" ) eng := engine.New() eng.Env.Set("APIVERSION", "1.12")
import ( "github.com/docker/docker/engine" "github.com/docker/docker/engine/env" ) eng := engine.New() eng.Env.SetList(env.ListPair{ {"APIVERSION", "1.12"}, {"DEBUG", "true"}, })In this example, a new engine is created and both the API version and debug flag are set using the `SetList()` method of `env.Env`. The values are passed as a list of key-value pairs. Overall, this package library is useful for managing environment variables within the Docker engine.