compare

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostic

type Diagnostic struct {
	FilePath string // FilePath where error was discovered.
	Message  string // Message contains error message.
}

Diagnostic is a message associated with an error and a file name.

func (*Diagnostic) String

func (d *Diagnostic) String() string

type Pass

type Pass struct {
	GitDir string
	// contains filtered or unexported fields
}

Pass provides all reported errors.

func (*Pass) CompareModules

func (p *Pass) CompareModules(from, to *compile.Module)

CompareModules looks for removed methods and added required fields.

func (*Pass) Lints

func (p *Pass) Lints() []Diagnostic

Lints returns all errors.

func (*Pass) Report

func (p *Pass) Report(d Diagnostic)

Report reports an error.

func (*Pass) String

func (p *Pass) String() string

Jump to

Keyboard shortcuts

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