DEV Community

Discussion on: How to create a native macOS app on Go (Golang) and React.js with full code protection — Part 1

Collapse
 
christopy profile image
Christopher Ribeiro

In the first example, the variable t actually should be renamed to box:

t := packr.NewBox("./templates")

Because its used here as box:

s, err := box.FindString("amdin/index.html")

Just to help others don't fall in the same error as me :)

Collapse
 
koddr profile image
Vic Shóstak

Thx! Fix it.