visitor

package
v0.0.0-...-e90a610 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Types

type Compressor

type Compressor struct{}

Compressor is the visitor

func (*Compressor) Visit

func (c *Compressor) Visit(v Visitable) error

func (*Compressor) VisitPDFFile

func (c *Compressor) VisitPDFFile()

func (*Compressor) VisitPPTFile

func (c *Compressor) VisitPPTFile()

type PDFFile

type PDFFile struct{}

PDFFile is visitable

func (*PDFFile) Accept

func (p *PDFFile) Accept(visitor Visitor) error

type PPTFile

type PPTFile struct{}

PDFFile is visitable

func (*PPTFile) Accept

func (p *PPTFile) Accept(visitor Visitor) error

type Visitable

type Visitable interface {
	Accept(Visitor) error
}

type Visitor

type Visitor interface {
	Visit(Visitable) error
}

Jump to

Keyboard shortcuts

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