Documentation ¶
Overview ¶
Package genfiles understands the .generated_files config file. The ".generated_files" config lives in the repo's root.
The config is a series of newline-delimited statements. Statements which begin with a `#` are ignored. A statement is a white-space delimited key-value tuple.
statement = key val
where whitespace is ignored, and:
key = "path" | "file-name" | "path-prefix" | "file-prefix" | "paths-from-repo"
For example:
# Simple generated files config file-prefix zz_generated. file-name generated.pb.go
The statement's `key` specifies the type of the corresponding value:
- "path": exact path to a single file
- "file-name": exact leaf file name, regardless of path
- "path-prefix": prefix match on the file path
- "file-prefix": prefix match of the leaf filename (no path)
- "paths-from-repo": load file paths from a file in repo
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
Group is a logical collection of files. Check for a file's inclusion in the group using the Match method.
type ParseError ¶
type ParseError struct {
// contains filtered or unexported fields
}
ParseError is an invalid line in a .generated_files config.
func (*ParseError) Error ¶
func (pe *ParseError) Error() string
Click to show internal directories.
Click to hide internal directories.