3
golang 模板 定义问题,求大神指点
source link: https://www.v2ex.com/t/788790
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
golang 模板引擎使用的时候,是需要定义模板的,有的后缀是.tmpl,有的后缀是.html,为什么这样定义?有什么区别吗
6 条回复 • 2021-07-11 08:01:33 +08:00
youngxhui 6 小时 7 分钟前 via Android
wangsongyan 2 小时 44 分钟前 via iPhone
@alfredhuo #4 static 就是静态资源目录 js/css/图片,views 就是用来放 go 模板的,至于 html 怎么写你可以看下 html 基础或者找些 demo 看下
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK