tmplutils

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupSourceTemplate

func CleanupSourceTemplate(s string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL