patch

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TOMLFile

func TOMLFile(
	toPatchFile string,
	p PatchesFunc,
) (string, error)

TOMLFile patches TOML from a file with the patches (should be TOML merge patches).

func TOMLReader

func TOMLReader(
	toPatchReader io.Reader,
	p PatchesFunc,
) (string, error)

TOMLReader patches TOML from a reader with the patches (should be TOML merge patches).

func TOMLString

func TOMLString(
	toPatch string,
	p PatchesFunc,
) (string, error)

TOMLString patches a TOML string toPatch with the patches (should be TOML merge patches).

Types

type PatchesFunc

type PatchesFunc func() ([]*toml.Tree, error)

func CombinePatches

func CombinePatches(pFns ...PatchesFunc) PatchesFunc

func FileGlobPatches

func FileGlobPatches(patchFileGlobs ...string) PatchesFunc

func FilePatches

func FilePatches(patchFiles ...string) PatchesFunc

func ReaderPatches

func ReaderPatches(patchReaders ...io.Reader) PatchesFunc

func StringPatches

func StringPatches(patches ...string) PatchesFunc

Jump to

Keyboard shortcuts

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