Documentation
¶
Index ¶
- Variables
- func FSDrawableProvider(ctx *Context, params []string) ([]byte, error)
- type Context
- type ControlContext
- type ControlObject
- type ControlTypeDrawing
- func (c *ControlTypeDrawing) AddParam(s string) error
- func (c *ControlTypeDrawing) Describe() string
- func (c *ControlTypeDrawing) Execute(ctx *Context) ([]any, error)
- func (c *ControlTypeDrawing) IsClosed() bool
- func (c *ControlTypeDrawing) IsClosing(co *ControlTypeEnd) bool
- func (c *ControlTypeDrawing) IsTheSame(co ControlObject) bool
- type ControlTypeEnd
- type CustomControlProvider
- type DocObject
- type DocProcessor
- type DrawableProvider
- type Error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotInControlContext = errors.New("not in control context") ErrInvalidControlContext = errors.New("invalid control context") ErrNoClosingCommandFound = errors.New("no closing command found") ErrUnsupportedCommandContext = errors.New("unsupported command context") ErrCommandResultError = errors.New("command result error") ErrVarNotFound = errors.New("variable not found") FuncVarNotFound = errors.New("function not found") )
Functions ¶
Types ¶
type Context ¶
type Context struct {
Processor *DocProcessor
ObjectType DocObject
Parent *Context
Index int
//docx corresponding object
Item any
Vars any
// contains filtered or unexported fields
}
func (*Context) SkipTillControlEnd ¶
SkipTillControlEnd reads dic till the end of current command
type ControlContext ¶
type ControlObject ¶
type ControlTypeDrawing ¶
type ControlTypeDrawing struct {
Provider DrawableProvider
// contains filtered or unexported fields
}
func (*ControlTypeDrawing) AddParam ¶
func (c *ControlTypeDrawing) AddParam(s string) error
func (*ControlTypeDrawing) Describe ¶
func (c *ControlTypeDrawing) Describe() string
func (*ControlTypeDrawing) Execute ¶
func (c *ControlTypeDrawing) Execute(ctx *Context) ([]any, error)
func (*ControlTypeDrawing) IsClosed ¶
func (c *ControlTypeDrawing) IsClosed() bool
func (*ControlTypeDrawing) IsClosing ¶
func (c *ControlTypeDrawing) IsClosing(co *ControlTypeEnd) bool
func (*ControlTypeDrawing) IsTheSame ¶
func (c *ControlTypeDrawing) IsTheSame(co ControlObject) bool
type ControlTypeEnd ¶
type ControlTypeEnd struct {
// contains filtered or unexported fields
}
type CustomControlProvider ¶
type CustomControlProvider func(name string) ControlObject
type DocProcessor ¶
type DocProcessor struct {
// contains filtered or unexported fields
}
func NewDocParser ¶
func NewDocParser(doc *docx.Docx, values any, options ...any) *DocProcessor
func (*DocProcessor) Process ¶
func (dp *DocProcessor) Process() error
Click to show internal directories.
Click to hide internal directories.