Skip to content

Commit 79eeafe

Browse files
committed
Fixed Lint warnings
1 parent 6a2a32d commit 79eeafe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/example2.go

+4
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,27 @@ import (
66
"github.com/aristanetworks/goeapi"
77
)
88

9+
// MyShowVlan ...
910
type MyShowVlan struct {
1011
SourceDetail string `json:"sourceDetail"`
1112
Vlans map[string]Vlan `json:"vlans"`
1213
}
1314

15+
// Vlan ...
1416
type Vlan struct {
1517
Status string `json:"status"`
1618
Name string `json:"name"`
1719
Interfaces map[string]Interface `json:"interfaces"`
1820
Dynamic bool `json:"dynamic"`
1921
}
2022

23+
// Interface ...
2124
type Interface struct {
2225
Annotation string `json:"annotation"`
2326
PrivatePromoted bool `json:"privatePromoted"`
2427
}
2528

29+
// GetCmd ...
2630
func (s *MyShowVlan) GetCmd() string {
2731
return "show vlan configured-ports"
2832
}

0 commit comments

Comments
 (0)