tmplvar

package
v0.0.0-...-45a9bcf Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package tmplvar provides functions to interact with template variables

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TemplateVar

type TemplateVar struct {
	Raw, Name, Key []byte
}

TemplateVar is the info for a parsed template variable.

func Parse

func Parse(b []byte) []TemplateVar

Parse returns parsed template variables found in the input data.

func ParseString

func ParseString(s string) []TemplateVar

ParseString returns parsed template variables found in the input string.

Jump to

Keyboard shortcuts

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