明亮夏天

文章
5
资源
0
加入时间
3年2月3天

Go标准库:Go template用法详解

本文只介绍template的语法和用法,关于template包的函数、方法、template的结构和原理,见:深入剖析Go template。入门示例以下为test.html文件的内容,里面使用了一个template语法{{.}}。<!DOCTYPE html><html> <head> <meta http-equiv=&