Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { // Path specifies where the file will reside. Path string // Template is the template used to generate the file. Template string }
File represents a file to generate.
type Generator ¶
Generator is the interface that generates project template files.
Generate accepts a list of files and generates them based on their template.
type Option ¶
type Option func(o *Options)
Option manipulates the Options passed.
type Options ¶
type Options struct { // Service is the name of the service the generator will generate files // for. Service string // Vendor is the service vendor. Vendor string // Directory is the directory where the files will be generated to. Directory string // Client determines whether or not the project is a client project. Client bool // Jaeger determines whether or not Jaeger integration is enabled. Jaeger bool // Jaeger determines whether or not Skaffold integration is enabled. Skaffold bool }
Options represents the options for the generator.
Click to show internal directories.
Click to hide internal directories.