fghdotio / sbhugoblogcomment

0 stars 0 forks source link

Template in Go - A-bit interference #3

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

Template in Go - A-bit interference

text/template 和 html/template 包可以将变量的值代入文本或 HTML 模板,用于输出更精细的格式,将输出格式和代码彻底分离。 模板可以是字符串或文件,它包含若干个用 {{}} 包起来的部分

http://hofungkoeng.com/post/building_block/go/template/

Staggerer commented 4 years ago

keep going