Documentation
¶
Index ¶
- func Apply(oldPath, patchPath, outPath string) error
- func ApplyBytes(oldData, patchData []byte) ([]byte, error)
- func ApplyHDiff(oldPath, patchPath, newPath string) error
- func Generate(oldPath, newPath string) ([]byte, error)
- func GenerateBytes(oldData, newData []byte) ([]byte, error)
- func GenerateHDiff(oldPath, newPath, patchPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyBytes ¶
ApplyBytes applies a patch to old bytes, returning new bytes
func ApplyHDiff ¶ added in v0.3.0
ApplyHDiff applies a patch using hpatchz to oldPath, writing the result to newPath. Shells out to the hpatchz binary.
func GenerateBytes ¶
GenerateBytes creates a patch from byte slices directly
func GenerateHDiff ¶ added in v0.3.0
GenerateHDiff creates a patch using hdiffz between oldPath and newPath, writing the patch to patchPath. Shells out to the hdiffz binary.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.