Documentation
¶
Index ¶
- Constants
- func Execute(ctx context.Context, w io.Writer, f input.Input) error
- func FileName(dir, name string) string
- func Header(comment, githubUrl string) string
- func IsInvalidInput(err error) bool
- func Package(dir string) string
- func RegenerableFileName(dir, suffix string) string
- func StepSetUpGitIdentity() string
Constants ¶
View Source
const ( // RegenerableFilePrefix defines a prefix for files that can be // regenerated in a subsequent generator execution. Otherwise the file // is considered a scaffolding file which is generated once and // supposed to be edited by the user. // // NOTE: It is important to design scaffolding files in a way so they // stay compatible with regenerated files as they are not updated in // subsequent generator executions. RegenerableFilePrefix = "zz_generated." )
Variables ¶
This section is empty.
Functions ¶
func IsInvalidInput ¶ added in v8.58.0
IsInvalidInput asserts invalidInputError.
func RegenerableFileName ¶
RegenerableFileName returns file name prefixed with "zz_generated." denoting that it be regenerated in a subsequent generator execution. Otherwise the file is considered a scaffolding file which is generated once and supposed to be edited by the user.
NOTE: It is important to design scaffolding files in a way so they stay compatible with regenerated files as they are not updated in subsequent generator executions.
func StepSetUpGitIdentity ¶
func StepSetUpGitIdentity() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.