mold: github.com/mayur-tolexo/mold Index | Files | Directories

package mold

import "github.com/mayur-tolexo/mold"

Index

Package Files

mold.go

type Mold Uses

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

    *wkhtmltopdf.PDFGenerator
    // 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

Directories

PathSynopsis
example

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