diff

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: EUPL-1.2 Imports: 6 Imported by: 0

Documentation

Overview

Package diff provides a diff implementation for the diff command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(oldFile, newFile string, opts *Options) (string, error)

Compare compares two files and returns the differences between them given the provided options.

Types

type Options

type Options struct {
	// Colorize is whether to colorize the output.
	Colorize bool
}

Options represents the options for the diff command.

Jump to

Keyboard shortcuts

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