prepared

package
v1.0.0-...-e3b73d2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: MIT Imports: 1 Imported by: 8

Documentation

Overview

Package prepared introduces prepared template interface. The interface is moved in the separate package to avoid circular references between `ataman` and `generic` packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Template

type Template interface {
	fmt.Stringer

	// Format formats the pre-rendered template.
	Format(args ...interface{}) string
}

Template is a pre-rendered template which implements fmt.Stringer interface so it can be easily used in printing. Using of the interface may save time by avoiding parsing and rendering the same template many times.

Jump to

Keyboard shortcuts

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