Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gofmt #237

Merged
merged 1 commit into from
Aug 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions pkg/yang/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func build(stmt *Statement, parent reflect.Value, types *typeDictionary) (v refl
//
// The functions have the form:
//
// func fn(ss *Statement, v, p reflect.Value, types *typeDictionary) error
// func fn(ss *Statement, v, p reflect.Value, types *typeDictionary) error
//
// Given stmt as a Statement of type at, ss is a substatement of stmt (in a few
// exceptional cases, ss is the Statement itself). v must have the same type
Expand Down Expand Up @@ -281,11 +281,11 @@ func build(stmt *Statement, parent reflect.Value, types *typeDictionary) (v refl
// The Field can have attributes delimited by a ','. The only
// supported attributes are:
//
// nomerge: Do not merge this field
// required: This field must be populated
// required=KIND: This field must be populated if the keyword is KIND
// otherwise this field must not be present.
// (This is to support merging Module and SubModule).
// nomerge: Do not merge this field
// required: This field must be populated
// required=KIND: This field must be populated if the keyword is KIND
// otherwise this field must not be present.
// (This is to support merging Module and SubModule).
//
// If at contains substructures, initTypes recurses on the substructures.
func initTypes(at reflect.Type) {
Expand Down
5 changes: 2 additions & 3 deletions pkg/yang/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
//
// A generic yang statements takes one of the forms:
//
// keyword [argument] ;
// keyword [argument] { [statement [...]] }
// keyword [argument] ;
// keyword [argument] { [statement [...]] }
//
// At the lowest level, package yang returns a simple tree of statements via the
// Parse function. The Parse function makes no attempt to determine the
Expand All @@ -40,7 +40,6 @@
//
// // e is the Entry tree for "module-name"
//
//
// More complicated uses cases should use NewModules and then some combination
// of Modules.GetModule, Modules.Read, Modules.Parse, and Modules.GetErrors.
//
Expand Down
16 changes: 8 additions & 8 deletions pkg/yang/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,17 +303,17 @@ func (ms *Modules) process() []error {
// on Entry trees once all the modules and submodules in ms have been built.
// Following augmentation, Process inserts implied case statements. I.e.,
//
// choice interface-type {
// container ethernet { ... }
// }
// choice interface-type {
// container ethernet { ... }
// }
//
// has a case statement inserted to become:
//
// choice interface-type {
// case ethernet {
// container ethernet { ... }
// }
// }
// choice interface-type {
// case ethernet {
// container ethernet { ... }
// }
// }
//
// Process may return multiple errors if multiple errors were encountered
// while processing. Even though multiple errors may be returned, this does
Expand Down