diff

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

Package diff provides function to compare contents from reader and returns error information if they are different.

The package will ignore white spaces at the end of line and end of file

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(expected, actual io.Reader) error

Compare compares actual with expected. if they are the same except space at line / file ending, no error is returned otherwise, if error occurred / not same, error will be returned

Types

This section is empty.

Jump to

Keyboard shortcuts

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