Skip to content

Commit

Permalink
Ensure that Multi implements Loader interface
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang authored and sauerbraten committed Jul 3, 2020
1 parent bb90cf9 commit 106a150
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions loaders/multi/multi.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import (
"github.com/CloudyKit/jet/v4"
)

var _ jet.Loader = (*Multi)(nil)

// Multi implements jet.Loader interface and tries to load templates from a list of custom loaders.
// Caution: When multiple loaders have templates with the same name, the order in which you pass loaders
// to NewLoader/AddLoaders dictates which template will be returned by Open when you request it!
Expand Down

0 comments on commit 106a150

Please sign in to comment.