Skip to content

Commit 6f722a0

Browse files
authored
Un-deprecate ygot.GoStruct, revert ygot.ValidatedGoStruct to pre-v0.18.1 (#664)
* Attempt to make ValidatedGoStruct backwards-compatible * Un-deprecate `ygot.GoStruct`, revert `ygot.ValidatedGoStruct` * fix some comments * Fix staticcheck * Improve comment
1 parent a730317 commit 6f722a0

32 files changed

+256842
-211943
lines changed

demo/device/devicedemo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func CreateDemoDeviceInstance() (*oc.Device, error) {
111111
if err != nil {
112112
return nil, err
113113
}
114-
// Since ygot.MergeStructs returns an ygot.ValidatedGoStruct interface, we
114+
// Since ygot.MergeStructs returns an ygot.GoStruct interface, we
115115
// must type assert it back to *oc.Device.
116116
return mergedDev.(*oc.Device), nil
117117
}

exampleoc/oc.go

Lines changed: 60346 additions & 49194 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)