{"repo":"OblivionOcean/Goh","free":true,"listed":false,"github":"https://github.com/OblivionOcean/Goh","clone":"git clone https://github.com/OblivionOcean/Goh.git","description":"Goh is a pre-compiled and fast template engine for the Go language. The fastest known go template package ⭐️ Goh 是一款Go语言的预编译快速模板引擎。（已知最快的go模板包）","language":"Go","stars":116,"topics":["go","go-template","golang","html-template","template"],"license":"Apache-2.0","category":"saas-starters-boilerplates","readme_excerpt":"Goh Goh is a pre-compiled and fast template engine for the Go language. English 简体中文 Table of Contents - Features - Performance Tests - Installation - Usage - Syntax Features - [x] Pre-compiled template engine to improve running speed. - [x] Almost compatible with the syntax of the Hero language. - [x] Zero-dependency. - [ ] Automatically re-compile after changing the template file. Performance Tests Obtained from https://github.com/slinso/goTemplateBenchmark. They are local test results generated from the test code in Hero. Installation Usage For the complete usage method, please refer to example programs Syntax The document is modified from https://github.com/shiyanhui/hero Goh has a total of nine statements, which are: - Function Definition Statement - This statement defines the function corresponding to the template. If there is no function definition statement in a template, the final result will not generate the corresponding function. - The last parameter of this function must be bytes.Buffer . Goh will automatically recognize the name of this parameter and write the result to this parameter. - Examples: - - - - Template Inheritance Statement - This statement declares the template to be inherited. - Example: - Template Include Statement - This statement loads the template to be included into this template. Its working principle is somewhat similar to #include in C++ . - Example: - Package Import Statement - This statement is used to declare all codes outside the functi","default_branch":null,"files":null,"tree":[],"storefront":"/r/OblivionOcean","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/OblivionOcean/Goh/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}