template

package
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package template provides utilities for parsing and Go templates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFSTemplate

func ParseFSTemplate(sourceTmpl fs.FS, pathname string, cfg interface{}) (*bytes.Buffer, error)

ParseFSTemplate parses template from the supplied file system at the specified path using the supplied config struct and returns the executed template.

func ParseTemplate

func ParseTemplate(sourceTmpl string, cfg interface{}) (*bytes.Buffer, error)

ParseTemplate receives an input template and a config struct and returns the executed template.

Types

This section is empty.

Jump to

Keyboard shortcuts

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