My webapp structure:
- gin-cource
- src
- templates
- tmpl1
file.html
*.html
- tmpl2
file.html
*.html
When I run it I get the panik
html/template: pattern matches no files: `templates/**/*.html`
...
c:/users/user/go/src/gin-course/src/main.go:11 +0x50
The code:
r := gin.Default()
r.LoadHTMLGlob("templates/**/*.html") // line 11
I've tried different paths to templates in the go code: "/templates/**/*.html", "src/templates/**/*.html" "gin-cource/src/templates/**/*.html"
But they were not suited.
What is the right path to templates?