template

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2019 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetUnexported

func SetUnexported(e bool)

SetUnexported variables, functions and types

Types

type Template

type Template struct {
	Variables interface{}
	// contains filtered or unexported fields
}

Template holds b0x and file template

func (*Template) Exec

func (t *Template) Exec() ([]byte, error)

Exec the template and return the final data as byte array

func (*Template) Set

func (t *Template) Set(name string) error

Set the template to be used "files" or "file"

Jump to

Keyboard shortcuts

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