utils

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diff added in v0.1.5

type Diff struct {
	Diff    DiffType         `json:"diff"`
	Records []*sqlite.Record `json:"record"`
}

func Compare added in v0.1.5

func Compare(pathA, pathB string) ([]*Diff, error)

Compare comperes 2 files by id and body

type DiffType added in v0.1.5

type DiffType string
const (
	Ok   DiffType = "equal"  // records are equal and they are in both files.
	ANoB DiffType = "A_only" // Key is found in file A only.
	BNoA DiffType = "B_only" // Key is found in file B only.
	Body DiffType = "body"   // Keys are equal, but bodies aren't (last_date were not compared).
)

func (DiffType) String added in v0.1.5

func (d DiffType) String() string

Jump to

Keyboard shortcuts

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