printer

package
v0.0.0-...-f665c8d Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clone

type Clone clone

func (Clone) Filename

func (c Clone) Filename() string

func (Clone) LineEnd

func (c Clone) LineEnd() int

func (Clone) LineStart

func (c Clone) LineStart() int

type Issue

type Issue struct {
	From, To Clone
}

type Issuer

type Issuer struct {
	ReadFile
}

func NewIssuer

func NewIssuer(fread ReadFile) *Issuer

func (*Issuer) MakeIssues

func (p *Issuer) MakeIssues(dups [][]*syntax.Node) ([]Issue, error)

type Printer

type Printer interface {
	PrintHeader() error
	PrintClones(dups [][]*syntax.Node) error
	PrintFooter() error
}

func NewHTML

func NewHTML(w io.Writer, fread ReadFile) Printer

func NewPlumbing

func NewPlumbing(w io.Writer, fread ReadFile) Printer

func NewText

func NewText(w io.Writer, fread ReadFile) Printer

type ReadFile

type ReadFile func(filename string) ([]byte, error)

Jump to

Keyboard shortcuts

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