dyweb / blog

Dongyue Tech Blog
https://blog.dongyueweb.com
14 stars 7 forks source link

[post] How to use go's builtin template #54

Open at15 opened 4 years ago

at15 commented 4 years ago

Type

Related

Description

Go's built in text/template and html/template is pretty useful for generating code, custom output (e.g. docker, kubectl, helm). However every time I need to use it I need to learn it again ... this post should list common syntax (and pitfalls)

And common places to use go template

Update