Skip to content

Commit

Permalink
Fix gofmt (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
wenovus authored Aug 27, 2022
1 parent 125c5f3 commit 03fa68f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
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

0 comments on commit 03fa68f

Please sign in to comment.