Skip to content

Commit

Permalink
Closing the engine during the main thread termination
Browse files Browse the repository at this point in the history
  • Loading branch information
antonyho committed Nov 10, 2023
1 parent 0ac9c70 commit ee5ea42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func main() {
}

eng := engine.New(options...)
defer eng.Close()
result, err := eng.Encode(flag.Arg(0))
if err != nil {
fmt.Println(err)
Expand Down

0 comments on commit ee5ea42

Please sign in to comment.