diff

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatChanges

func FormatChanges(changes *Changes, indent int) string

Types

type Changes

type Changes struct {
	Modified  map[string]string
	Added     []string
	Removed   []string
	Group     string
	Reordered []*LineMove
}

func Clusters

func Clusters(ctx context.Context, a map[string]interface{}, b map[string]interface{}) (*Changes, error)

func VirtualHosts

func VirtualHosts(a map[string]interface{}, b map[string]interface{}) (*Changes, error)

func (*Changes) Empty

func (c *Changes) Empty() bool

type LineMove

type LineMove struct {
	Line   string
	OldPos int
	NewPos int
}

Jump to

Keyboard shortcuts

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