Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdata committed May 24, 2024
1 parent 27e0085 commit 8500c77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions template.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ func (t Template) JawsEvent(e *Element, wht what.What, val string) error {
return callEventHandler(t.Dot, e, wht, val)
}

// NewTemplate simply returns a Template{} with the members set.
//
// Provided as convenience so as to not have to name the structure members.
func NewTemplate(name string, dot any) Template {
return Template{Name: name, Dot: dot}
}
Expand Down

0 comments on commit 8500c77

Please sign in to comment.