diff

package
v0.0.0-...-a63f05c Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const FileDiffTypeAdded = "added"
View Source
const FileDiffTypeDeleted = "deleted"
View Source
const FileDiffTypeModified = "modified"

Variables

This section is empty.

Functions

func GoDiff

func GoDiff(Path1, Path2 string) (string, error)

func ToJSON

func ToJSON(diff []FileDiff) (string, error)

Types

type FileDiff

type FileDiff struct {
	Path string       `json:"path"`
	Type FileDiffType `json:"type"`
	MD5  string       `json:"md5"`
}

func CompareFolders

func CompareFolders(folder1, folder2 string) ([]FileDiff, error)

type FileDiffType

type FileDiffType string

Jump to

Keyboard shortcuts

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