templatewrapper

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api interface {
	Parse() error
	Write(wr io.Writer, name string, data interface{}) error
}

Functionality that this library exposes.

type TemplateWrapper

type TemplateWrapper struct {
	// contains filtered or unexported fields
}

func New

func New(isRawFile bool, templateContent []byte, templateName string, templatePath string) *TemplateWrapper

New allocates a new templateWrapper with the given name.

func (*TemplateWrapper) Parse

func (i *TemplateWrapper) Parse() (*TemplateWrapper, error)

func (*TemplateWrapper) Write

func (i *TemplateWrapper) Write(wr io.Writer, name string, data interface{}) error

Jump to

Keyboard shortcuts

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