template

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(path string) (bool, error)

func IsDir

func IsDir(path string) (bool, error)

func ReadDir

func ReadDir(path string) ([]string, error)

func ReadFile

func ReadFile(path string) (string, error)

func Walk

func Walk(path string) ([]string, error)

Types

type GenericTemplate

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

func New

func New(name string, html bool) *GenericTemplate

func NewHTML

func NewHTML(name string) *GenericTemplate

func NewText

func NewText(name string) *GenericTemplate

func (*GenericTemplate) Execute

func (tmpl *GenericTemplate) Execute(wr io.Writer, data interface{}) error

func (*GenericTemplate) Parse

func (tmpl *GenericTemplate) Parse(text string) (*GenericTemplate, error)

Jump to

Keyboard shortcuts

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