mirror of
https://github.com/clearlinux/libnetwork.git
synced 2026-08-19 12:26:15 +00:00
Fix example package error
This commit is contained in:
@@ -64,7 +64,7 @@ There are many networking solutions available to suit a broad range of use-cases
|
||||
epInfo, err := ep.DriverInfo()
|
||||
mapData, ok := epInfo[netlabel.PortMap]
|
||||
if ok {
|
||||
portMapping, ok := mapData.([]netutils.PortBinding)
|
||||
portMapping, ok := mapData.([]types.PortBinding)
|
||||
if ok {
|
||||
fmt.Printf("Current port mapping for endpoint %s: %v", ep.Name(), portMapping)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user