Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProtocStep ¶
func ProtocStep(genCodeFunc func(gen *protogen.Plugin) error, opts ...OptionFunc) error
Types ¶
type OptionFunc ¶
type OptionFunc func(gen *protocCodeGen) error
func ReadFileWithBin ¶
func ReadFileWithBin(filename string) OptionFunc
ReadFileWithBin default proto-gen-step默认生成的文件名可不传
func ReadFileWithJson ¶
func ReadFileWithJson(filename string) OptionFunc
ReadFileWithJson 不建议使用序列化直接的json解析,因为会丢失Extension信息,不过可以作为参考和信息核对
func WriteFile ¶
func WriteFile(isWrite bool) OptionFunc
Click to show internal directories.
Click to hide internal directories.