custom

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2019 License: MIT Imports: 14 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Custom

type Custom struct {
	Files  []string
	Base   string
	Prefix string
	Tags   string

	Exclude []string
	Replace []Replacer
}

Custom is a set of files with dedicaTed customization

func (*Custom) Parse

func (c *Custom) Parse(files *map[string]*file.File, dirs **dir.Dir, config *SharedConfig) error

Parse the files transforming them into a byte string and inserting the file into a map of files

type Replacer

type Replacer struct {
	File    string
	Replace map[string]string
}

Replacer strings in a file

type SharedConfig

type SharedConfig struct {
	Output      string
	Compression *compression.Gzip
	Updater     updater.Config
}

SharedConfig holds needed data from config package without causing import cycle

Jump to

Keyboard shortcuts

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