protobuf

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile

func Compile(protoDir string, opts ...Option) (err error)

func DefaultGetOutPath

func DefaultGetOutPath(filePath string) string

func GenerateCommands

func GenerateCommands(af afero.Fs, protoDir string, opts ...Option) (cmds []*exec.Cmd, err error)

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

type GetOutPath

type GetOutPath func(filePath string) string

type Option

type Option func(c *Config)

func WithDebug

func WithDebug() Option

func WithGetOutPath

func WithGetOutPath(getOutPath GetOutPath) Option

func WithGrain

func WithGrain() Option

func WithIncludePaths

func WithIncludePaths(includePaths ...string) Option

func WithInjectTag

func WithInjectTag() Option

type Summary

type Summary struct {
	GoPackage string
	OutPath   string
	ProtoFile string
	Args      []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL