templates

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package templates provides functionality for working with templates, including JSON formatting for output.

Index

Constants

View Source
const (
	JSONFormatKey = "json"
	JSONFormat    = "{{json .}}"
)

Key and format strings in the --format option.

Variables

This section is empty.

Functions

func New

func New(tag string) *template.Template

New creates a new empty template with the provided tag and built-in template functions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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