Skip to content

Commit 97a98aa

Browse files
fix: don't expose internal package types
1 parent b41f687 commit 97a98aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func WithReadFileSystem(fs fs.FS) Opt {
4141
}
4242

4343
// WithWriteFunc sets the write function to use for writing files. This is useful for writing to locations other than disk.
44-
func WithWriteFunc(writeFunc template.WriteFunc) Opt {
44+
func WithWriteFunc(writeFunc func(string, []byte) error) Opt {
4545
return func(e *Engine) {
4646
e.templator.WriteFunc = writeFunc
4747
}

0 commit comments

Comments
 (0)