doct

package
v0.0.0-...-cc1f0fe Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 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 LibreTemplate

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

func (LibreTemplate) Ext

func (tpl LibreTemplate) Ext() string

func (LibreTemplate) Name

func (tpl LibreTemplate) Name() string

func (LibreTemplate) Render

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

func (LibreTemplate) Type

func (tpl LibreTemplate) Type() string

type MsTemplate

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

func (MsTemplate) Ext

func (tpl MsTemplate) Ext() string

func (MsTemplate) Name

func (tpl MsTemplate) Name() string

func (MsTemplate) Render

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

func (MsTemplate) Type

func (tpl MsTemplate) 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 LoadLibreTemplate

func LoadLibreTemplate(path string) (Template, error)

func LoadMsTemplate

func LoadMsTemplate(path string) (Template, error)

Jump to

Keyboard shortcuts

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