godiff

package
v0.0.0-...-f79304c Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2016 License: BSD-2-Clause-Views Imports: 17 Imported by: 3

Documentation

Overview

go-diff is a tool checking semantic difference between source files.

Currently supported language:

- Go (fully)

If the language is not supported or parsing is failed for either file, a line-to-line comparing is imposed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(orgFn, newFn string, options Options)

Exec prints the difference between two Go files to stdout. Not thread-safe.

func ExecWriter

func ExecWriter(w io.Writer, fset0 *token.FileSet, file0 *ast.File, fset1 *token.FileSet, file1 *ast.File, options Options)

ExecWriter prints the difference between two parsed Go files into w. Not thread-safe.

Types

type Options

type Options struct {
	NoColor bool // Turn off the colors when printing.
}

Options specifies options for processing files.

Jump to

Keyboard shortcuts

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