Help us shape the future of Go! Take the 2026 Go Developer Survey

protocompile

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(impl *protobufCompilerImpl)

func WithGRPC added in v0.0.3

func WithGRPC(genGRPC bool) Option

type ProtobufCompiler

type ProtobufCompiler interface {
	Compile(sourceProtoDir, outputDir, pkgName string) error // 生成protobuf.pb文件
}

func New

func New(options ...Option) ProtobufCompiler

Jump to

Keyboard shortcuts

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