在用gin框架写博客时,发现模板路径无法匹配,报错html/template: pattern matches no files: views/*
image.png
文件路径是绝对正确的,但是就是报错,后来才发现,是使用了goland的run功能,它的实际运行环境是
image.png
所以还是要在终端自己go build然后运行才是最好的
在用gin框架写博客时,发现模板路径无法匹配,报错html/template: pattern matches no files: views/*