Skip to content

Commit

Permalink
Merge pull request #19 from ardielle/issue_18
Browse files Browse the repository at this point in the history
Add name method to resource builder
  • Loading branch information
boynton committed Dec 12, 2016
2 parents b9b11fb + d23db26 commit c59c0af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rdl/schemabuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,11 @@ func (rb *ResourceBuilder) Exception(sym string, typename string, comment string
return rb
}

func (rb *ResourceBuilder) Name(sym string) *ResourceBuilder {
rb.proto.Name = Identifier(sym)
return rb
}

func (rb *ResourceBuilder) Build() *Resource {
return &rb.proto
}

0 comments on commit c59c0af

Please sign in to comment.