Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what's the proper file extension or abbr. for golang's text/template?

I'm thinking about creating syntax highlighter for it, but I don't know the conventional abbreviation for this specific type of template.

like image 790
Polor Beer Avatar asked Mar 07 '14 15:03

Polor Beer


People also ask

How do I create a template in Golang?

Here List should be an array, map or slice which if has length 0, then template temp_1 will be executed, else it iterates through the elements on List. The input format for a template should be of a UTF-8-encoded format. Any other text outside is printed as it is to the standard output. The predefined variable os.


1 Answers

In one of the examples from the text/template godoc, they refer to ".tmpl" files.

like image 65
mmindenhall Avatar answered Oct 06 '22 22:10

mmindenhall