params

package
v0.0.0-...-6515077 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2021 License: Apache-2.0 Imports: 1 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 struct {
	// pb option
	Protodirs    []string // pb import路径
	Protofile    string   // protofile文件
	ProtofileAbs string   // protofile绝对路径

	// template option
	Assetdir string // 服务模板路径
	Protocol string // 协议类型
	//HttpOn   bool   // 生成http相关代码,使用-protocol=http代替-httpon
	RpcOnly bool // 只生成rpc相关代码,而非完整工程
	// gorpc.json
	GoRPCCfg *config.TemplateCfg

	// gomod option
	GoMod   string // 当前工程指定的gomod
	GoModEx string // go.mod中提取出的module

	// logging option
	Verbose bool // 输出verbose日志信息

	// logging option
	OutputDir string // 项目输出路径
	Force     bool   // 强制写入
}

Option 命令选项、配置选项

Jump to

Keyboard shortcuts

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