patcher

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(patchName, resDir, targetDir string, changes []Change) (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