Merge pull request #400 from QthCN/fix/readme_err
FIX incorrect usage about libnetwork.New() in README.md
This commit is contained in:
commit
27385b21be
|
@ -18,7 +18,10 @@ There are many networking solutions available to suit a broad range of use-cases
|
||||||
|
|
||||||
```go
|
```go
|
||||||
// Create a new controller instance
|
// Create a new controller instance
|
||||||
controller := libnetwork.New()
|
controller, err := libnetwork.New()
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Select and configure the network driver
|
// Select and configure the network driver
|
||||||
networkType := "bridge"
|
networkType := "bridge"
|
||||||
|
|
Loading…
Reference in New Issue