generator

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestParseFileOptions

func TestParseFileOptions(fd protoreflect.FileDescriptor) (string, string)

TestParseFileOptions is aimed to parse the options of a protobuf definition file.

func TestParseMessageOptions

func TestParseMessageOptions(md protoreflect.MessageDescriptor) (string, string, int32, int32, int32, bool)

TestParseMessageOptions is aimed to parse the options of a protobuf message.

Types

type Cell

type Cell struct {
	Caption string
	Data    string
}

type Generator

type Generator struct {
	ProtoPackageName string // protobuf package name.
	InputPath        string // root dir of workbooks.
	OutputPath       string // output path of generated files.
	// contains filtered or unexported fields
}

func (*Generator) Generate

func (gen *Generator) Generate()

func (*Generator) TestParseFieldOptions

func (gen *Generator) TestParseFieldOptions(md protoreflect.MessageDescriptor, row *Row, depth int, prefix string)

TestParseFieldOptions is aimed to parse the options of all the fields of a protobuf message.

type Row

type Row []Cell

Jump to

Keyboard shortcuts

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