Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupSourceTemplate ¶
CleanupSourceTemplate cleans up special comments in a source template.
A source template is a file containing source code in target langauge but contains special double slash comments for templating:
- `// +` will be replaced with empty string and the line next to it will be removed.
- `// {{` will be replaced with `{{`
This makes the template syntactically correct in the target language, which improves readibility.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.