Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotProcessable = errors.New("not a processable file")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// FileExtensions are the file extensions this processor should handle
FileExtensions []string
// FileNames are specific files this processor should handle
FileNames []string
// IsPostCodegenProcessor denotes whether or not the given processor
// should be ran after the codegen stage of stencil. The main difference
// between running a processor during the codegen stage and after the
// codegen stage are the files each touches, respectively. The codegen
// processors will only touch non-static files generated by stencil,
// whereas post-codegen processors will touch every file of the repository,
// regardless of whether or not it was generated by stencil or not.
// Template does not get passed to Process function (see Processor
// interface) when this bool is set to true.
IsPostCodegenProcessor bool
}
type GoBox ¶
type GoBox struct{}
GoBox implements the processors.Processor interface to facilitate the migration from the go-outreach repository as a dependency to gobox.
Click to show internal directories.
Click to hide internal directories.