You instantly notice it because the if err != nil -template is missing after it =)
https://github.com/golang/go/issues/20803
In contrast, e.g. Zig requires you to use _ if you want to ignore.