Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoContentGenerator = errors.New("no target content generator was set")
)
Functions ¶
Types ¶
type Generator ¶
type Generator struct {
Opts *Options
}
type Option ¶
type Option func(p *Options)
Option is a more atomic to configure the different Options rather than passing the entire Options struct.
func CustomManifestErrorTemplate ¶
CustomManifestErrorTemplate configures the parser's generator to add the autogenerated header to generated files
func CustomManifestInfoTemplate ¶
CustomManifestInfoTemplate configures the parser's generator CustomInfoTemplateFilepath path to the custom user template for errors manifest errors
type Options ¶
type Options struct { // Logger is the parser's logger // Option: func Logger(logger *logging.Logger) Option Logger *logging.Logger Output string // TargetManifestGenerator is the content generator used to generate the yaml error manifest. TargetManifestGenerator Target // CustomInfoTemplateFilepath path to the custom user template for errors manifest general info CustomInfoTemplateFilepath string // CustomErrorTemplateFilepath path to the custom user template for errors manifest errors CustomErrorTemplateFilepath string // GenerationWatermark is header sitting at the top of the output file GenerationWatermark string // Writer is parser internal writer Writer io.Writer }
Options is a struct contains all the configurations available for the parser
Click to show internal directories.
Click to hide internal directories.