Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidCommand indicates an invalid command name. ErrInvalidCommand = errors.New("invalid command name") // ErrProtoFilesNotFound indicates that no ".proto" files were found. ErrProtoFilesNotFound = errors.New("no proto files found") )
Functions ¶
This section is empty.
Types ¶
type Buf ¶
type Buf struct {
// contains filtered or unexported fields
}
Buf represents the buf application structure.
type GenOption ¶ added in v28.5.0
type GenOption func(*genOptions)
GenOption configures code generation.
func ExcludeFiles ¶ added in v28.5.0
ExcludeFiles exclude file names from the generate command using glob.
func FileByFile ¶ added in v28.5.0
func FileByFile() GenOption
FileByFile runs the generate command for each proto file.
func IncludeImports ¶ added in v28.5.0
func IncludeImports() GenOption
IncludeImports also generate all imports except for Well-Known Types.
func IncludeWKT ¶ added in v28.5.0
func IncludeWKT() GenOption
IncludeWKT also generate Well-Known Types. Cannot be set without IncludeImports.
Click to show internal directories.
Click to hide internal directories.