Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDiffFound = errors.New("DiffFound")
View Source
var ErrNoDiffCommand = errors.New("NoDiffCommand")

Functions

This section is empty.

Types

type Config

type Config struct {
	Context              int
	Separator            string
	Indent               int
	Out                  string
	Debug                bool
	Quiet                bool
	Color                bool
	DiffSuccess          bool
	AllowDuplicateKey    bool
	DiffCommand          string
	Verbose              bool
	Labels               []string
	MarkdownHeadingLevel uint
	Stdin                io.Reader
	IgnoreMatchingLines  []string
	IgnoreFields         []string
	IgnoreLabels         []string
	IgnoreAnnotations    []string
	IgnoreManagedFields  bool
	IgnoreStatus         bool
}

func (*Config) OutMode

func (c *Config) OutMode() OutMode

func (*Config) Run

func (c *Config) Run(w io.Writer, left, right string) error

type OutMode

type OutMode string
const (
	OutModeUnknown  OutMode = "unknown"
	OutModeText     OutMode = "text"
	OutModeYaml     OutMode = "yaml"
	OutModeID       OutMode = "id"
	OutModeIDList   OutMode = "idlist"
	OutModeMarkdown OutMode = "markdown"
)

Jump to

Keyboard shortcuts

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