diff

package
v0.0.0-...-ab4b919 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDiffs

func FormatDiffs(diffs Diffs) ([]byte, error)

FormatDiffs format all diffs in a single markdown byte array.

func SaveDiffs

func SaveDiffs(diffs Diffs, outputPath string) error

SaveDiffs save all migration diffs to the output path.

Types

type Diffs

type Diffs map[string][]gotextdiff.Unified

func CalculateDiffs

func CalculateDiffs(fromDir, toDir string) (Diffs, error)

CalculateDiffs calculate the diff from two directories.

Jump to

Keyboard shortcuts

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