doct

package
v0.0.0-...-a0c82dc Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OdfTemplate

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

func (OdfTemplate) Ext

func (tpl OdfTemplate) Ext() string

func (OdfTemplate) Name

func (tpl OdfTemplate) Name() string

func (OdfTemplate) Render

func (tpl OdfTemplate) Render(dst io.Writer, data interface{}) error

func (OdfTemplate) Type

func (tpl OdfTemplate) Type() string

type OxmlTemplate

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

func (OxmlTemplate) Ext

func (tpl OxmlTemplate) Ext() string

func (OxmlTemplate) Name

func (tpl OxmlTemplate) Name() string

func (OxmlTemplate) Render

func (tpl OxmlTemplate) Render(dst io.Writer, data interface{}) error

func (OxmlTemplate) Type

func (tpl OxmlTemplate) Type() string

type Processor

type Processor func(header *zip.FileHeader, r io.Reader, w io.Writer) error

type Template

type Template interface {
	Name() string
	Type() string
	Ext() string
	Render(w io.Writer, data interface{}) error
}

func LoadOdfTemplate

func LoadOdfTemplate(path string) (Template, error)

func LoadOxmlTemplate

func LoadOxmlTemplate(path string) (Template, error)

Jump to

Keyboard shortcuts

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