mold: Index | Files | Directories

package mold

import ""


Package Files


type Mold Uses

type Mold struct {
    HTMLTemplate string //html template string
    HTMLPath     string //html template file path

    // contains filtered or unexported fields

Mold model

func NewHTMLTemplate Uses

func NewHTMLTemplate(tmpl ...string) (m *Mold, err error)

NewHTMLTemplate will create new return new html template mold

func (*Mold) Bytes Uses

func (m *Mold) Bytes() []byte

Bytes will return bytes from mold buffer

func (*Mold) Execute Uses

func (m *Mold) Execute(data interface{}) (err error)

Execute will execute the template

func (*Mold) PDF Uses

func (m *Mold) PDF(path, name string) (err error)

PDF will create pdf

func (*Mold) String Uses

func (m *Mold) String() string

String will return string from mold buffer



Package mold imports 3 packages (graph) and is imported by 1 packages. Updated 2019-06-13. Refresh now. Tools for package owners.