Go Template
The extension gohtml supports syntax highlighting in both atom and gosublime editors.
Go template. Go templates provide an extremely simple template language that adheres to the belief that only the most basic of logic belongs in the template or view layer. It is mostly used in web applications to display data in a structured way in a client s browser. Hugo uses go s html template and text template libraries as the basis for the templating. Template refer to elements of the data structure typically a field of a struct or a key in a map to control execution and derive values to be displayed.
There re two packages operating with templates text template and html template. One of the most popular is tmpl supported by vim go and referenced in the text template godocs. Go templates are a powerful method to customize output however you want whether you re creating a web page sending an e mail working with buffalo go hugo or just using some cli such as kubectl. Execution of the template walks the structure and sets the cursor represented by a period and called dot to the value at the current location in the structure as execution proceeds.
There is no defined file extension for go templates.