custom

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
}

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