diff

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 3 Imported by: 2

README

diff

Go Reference

diff is a Go package for comparing files and io.Readers.

Documentation

Overview

Package diff checks whether files and io.Readers have identical contents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Files

func Files(file1, file2 string) (different bool, err error)

Files compares the contents of file1 and file2. Files first compares file length before looking at the contents.

func Readers

func Readers(r1, r2 io.Reader) (different bool, err error)

Readers compares the contents of two io.Readers. The return value of different is true if and only if there are no errors in reading r1 and r2 (io.EOF excluded) and r1 and r2 are byte-for-byte identical.

Types

This section is empty.

Jump to

Keyboard shortcuts

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