patcher

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateDirDiff added in v1.3.6

func CalculateDirDiff(newHashes, oldHashes map[string]string) (addedDirs, deletedDirs []string)

func GenerateV2

func GenerateV2(info model.PatchInfoTuple, changes []Change, addedDirs, deletedDirs []string) error

Types

type Change

type Change struct {
	Filename   string     `json:"filename"`
	ChangeType ChangeType `json:"change_type"`
}

func CalculateDiff

func CalculateDiff(newVersionFileHashes, oldVersionFileHashes map[string]string) ([]Change, error)

type ChangeType

type ChangeType int
const (
	Unchanged ChangeType = iota
	Modified
	Deleted
	Added
)

Jump to

Keyboard shortcuts

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