render

package
v0.125.7 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufWriter

type BufWriter struct {
	*bytes.Buffer
}

func (*BufWriter) Available

func (b *BufWriter) Available() int

func (*BufWriter) Buffered

func (b *BufWriter) Buffered() int

func (*BufWriter) Flush

func (b *BufWriter) Flush() error

type Context

type Context struct {
	*BufWriter

	ContextData
	// contains filtered or unexported fields
}

func (*Context) PeekPid added in v0.125.0

func (ctx *Context) PeekPid() uint64

PeekPid returns the current page ID without removing it from the stack.

func (*Context) PopPid added in v0.125.0

func (ctx *Context) PopPid() uint64

PopPid pops the last page ID from the stack.

func (*Context) PopPos

func (ctx *Context) PopPos() int

func (*Context) PushPid added in v0.125.0

func (ctx *Context) PushPid(pid uint64)

PushPid pushes a new page ID to the stack.

func (*Context) PushPos

func (ctx *Context) PushPos(n int)

type ContextData

type ContextData interface {
	RenderContext() converter.RenderContext
	DocumentContext() converter.DocumentContext
}

type RenderContextDataHolder

type RenderContextDataHolder struct {
	Rctx converter.RenderContext
	Dctx converter.DocumentContext
}

func (*RenderContextDataHolder) DocumentContext

func (ctx *RenderContextDataHolder) DocumentContext() converter.DocumentContext

func (*RenderContextDataHolder) RenderContext

func (ctx *RenderContextDataHolder) RenderContext() converter.RenderContext

Jump to

Keyboard shortcuts

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