Skip to content

Commit

Permalink
Run gofmt on the codebase. (#722)
Browse files Browse the repository at this point in the history
* Run `gofmt` on the codebase.

* Fix lists

* Add DiffOpt for shadow-paths (#723)

Co-authored-by: wenovus <wenbli@google.com>
Co-authored-by: Wen Bo Li <50884368+wenovus@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 1, 2022
1 parent f9326f6 commit 77d1f74
Show file tree
Hide file tree
Showing 43 changed files with 1,553 additions and 859 deletions.
6 changes: 3 additions & 3 deletions demo/optical/opticaldemo.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ type apsModuleInput struct {
func CreateDemoOpticalInstance() (*oc.Device, error) {
d := &oc.Device{
Aps: &oc.Aps{},
Component: map[string]*oc.Component{
"mod-one": &oc.Component{Name: ygot.String("mod-one")},
"mod-two": &oc.Component{Name: ygot.String("mod-two")},
Component: map[string]*oc.Component{
"mod-one": {Name: ygot.String("mod-one")},
"mod-two": {Name: ygot.String("mod-two")},
},
}

Expand Down
39 changes: 20 additions & 19 deletions exampleoc/oc.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,27 @@ OpenConfig models using the ygot package.

This package was generated by github.com/openconfig/ygot
using the following YANG input files:
- public/release/models/network-instance/openconfig-network-instance.yang
- public/release/models/optical-transport/openconfig-optical-amplifier.yang
- public/release/models/optical-transport/openconfig-terminal-device.yang
- public/release/models/optical-transport/openconfig-transport-line-protection.yang
- public/release/models/platform/openconfig-platform.yang
- public/release/models/policy/openconfig-routing-policy.yang
- public/release/models/lacp/openconfig-lacp.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/stp/openconfig-spanning-tree.yang
- public/release/models/interfaces/openconfig-interfaces.yang
- public/release/models/interfaces/openconfig-if-ip.yang
- public/release/models/interfaces/openconfig-if-aggregate.yang
- public/release/models/interfaces/openconfig-if-ethernet.yang
- public/release/models/interfaces/openconfig-if-ip-ext.yang
- public/release/models/relay-agent/openconfig-relay-agent.yang
- public/release/models/aft/openconfig-aft-network-instance.yang
- public/release/models/lldp/openconfig-lldp.yang
- public/release/models/network-instance/openconfig-network-instance.yang
- public/release/models/optical-transport/openconfig-optical-amplifier.yang
- public/release/models/optical-transport/openconfig-terminal-device.yang
- public/release/models/optical-transport/openconfig-transport-line-protection.yang
- public/release/models/platform/openconfig-platform.yang
- public/release/models/policy/openconfig-routing-policy.yang
- public/release/models/lacp/openconfig-lacp.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/stp/openconfig-spanning-tree.yang
- public/release/models/interfaces/openconfig-interfaces.yang
- public/release/models/interfaces/openconfig-if-ip.yang
- public/release/models/interfaces/openconfig-if-aggregate.yang
- public/release/models/interfaces/openconfig-if-ethernet.yang
- public/release/models/interfaces/openconfig-if-ip-ext.yang
- public/release/models/relay-agent/openconfig-relay-agent.yang
- public/release/models/aft/openconfig-aft-network-instance.yang
- public/release/models/lldp/openconfig-lldp.yang

Imported modules were sourced from:
- public/...
- deps/...
- public/...
- deps/...
*/
package exampleoc

Expand Down
Loading

0 comments on commit 77d1f74

Please sign in to comment.