protorefine

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Argument

type Argument struct {
	GolangModule        string // 源代码的模块名
	GolangSourceCodeDir string // 源代码的路径
	ProtoRepository     string // 原始proto文件所在的目录
	OutputDir           string
	OutputPackage       string
}

type Option

type Option func(impl *protoRefineImpl)

type ProtoRefine

type ProtoRefine interface {
	GetOutputGolangPackageName(string) (string, error) // 获取输出的golang包名
	Refine(Argument) (string, error)                   // 精简proto files, 返回proto输出目录
}

func New

func New(options ...Option) ProtoRefine

Jump to

Keyboard shortcuts

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