Å·±¦ÓéÀÖ

Go Quickly - 50+ Template Functions from Sprig

Go ships with a powerful template package. But the default template language has only a few functions. , a library from the authors of , augments the existing functions with almost 60 additional functions.

Go Templates

Go provides a generic text templating language (text/template) and also an HTML-specific implementation of that same language (html/template). Both libraries work essentially the same way: You create a template, parse the template, inject some values, and then execute...

 •  0 comments  •  flag
Published on March 29, 2016 07:43
No comments have been added yet.