go编译到linux之后 运行找不到模板文件
本地mac环境 运行正常
linux环境 解析不到模板文件
open resources/views/articles/create.gohtml: no such file or directory
// 代码
tmpl, err := template.ParseFiles("resources/views/articles/create.gohtml")
if err != nil {
log.Fatal("配置文件读取失败。err", err)
}
推荐文章: