filesystem

package
v0.3.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SpecialOpeningDelimiter is custom opening delimiter used in golang templates
	SpecialOpeningDelimiter = "<~"
	// SpecialClosingDelimiter is custom closing delimiter used in golang templates
	SpecialClosingDelimiter = "~>"
)

Variables

This section is empty.

Functions

func GenerateDelta

func GenerateDelta(source, destination, store string) error

GenerateDelta generates Delta between source and destination

func Merge

func Merge(source, destination string, warnOnOverwrite bool) error

Merge copies and merges data into destination directory

func Replicate

func Replicate(source, destination string) error

Replicate replicates the source directory into destination

func TemplateCopy

func TemplateCopy(source, destination string, config interface{}) error

TemplateCopy copies a directory to another and applies a template config on all files in the directory

Types

type AddOnConfig

type AddOnConfig struct {
	OpeningDelimiter string
	ClosingDelimiter string
	Config           interface{}
}

AddOnConfig bundles the delimiter configuration with template configuration

Jump to

Keyboard shortcuts

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