Documentation
¶
Index ¶
Constants ¶
View Source
const CmdPrefix = "genpls:"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type File struct {
// Name is an absolute file path.
Name string
// Data is a file content.
Data []byte
}
File is a result of the code generation.
type GeneratorName ¶
type GeneratorName string
func (GeneratorName) Command ¶
func (gn GeneratorName) Command() string
type Please ¶
func (*Please) FormatDoNotEditHeader ¶
func (pls *Please) FormatDoNotEditHeader(name GeneratorName) string
FormatDoNotEditHeader formats DO NOT EDIT header comment.
func (*Please) FormatFileName ¶
func (pls *Please) FormatFileName(name GeneratorName) (filename string)
FormatFileName formats absolute path for a new destination file.
func (*Please) FormatGeneratorFileName ¶
func (pls *Please) FormatGeneratorFileName(name GeneratorName, test bool) (filename string)
FmtFileName formats absolute path for a new destination file.
Click to show internal directories.
Click to hide internal directories.