lucasnevespereira / resumme-builder

Resume builder in Golang using json data and html templates
MIT License
13 stars 6 forks source link

ParseToHtml errors out on Windows #7

Closed francois07 closed 2 months ago

francois07 commented 2 months ago

When running resumme-builder on Windows, ParseToHtml errors outs

[FATAL] 08-07-2024 13:13:20 - ParseToHtml stackoverflow - Execute: template: "ui\\stackoverflow\\_stackoverflow.gohtml" is an incomplete or empty template

Steps to reproduce

  1. Use Windows
  2. Run go run *.go local -f='examples/example.resume.json

Solution

Modify https://github.com/lucasnevespereira/resumme-builder/blob/9fcb32d513520de28c4b7fac0fd788fbe3f1fb70/internal/pkg/template/manager.go#L38 to use filepath instead of path.

Package filepath implements utility routines for manipulating filename paths in a way compatible with the target operating system-defined file paths.

--- https://pkg.go.dev/path/filepath