gogen

package
v0.0.0-...-d853fe5 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FieldTag

func FieldTag(f *protogen.Field) string

Types

type GoGenerator

type GoGenerator struct {
	// Rewriter    map[*com.FileDescriptorProto]*rewrite.Rewriter
	RootPackage string
}

GoGenerator generate go code

func NewGoGenerator

func NewGoGenerator(rootPackage string) (gg *GoGenerator, err error)

NewGoGenerator init a GoGenerator

@param pkg
@return *GoGenerator
@return error

func (*GoGenerator) Generate

func (g *GoGenerator) Generate(tplRoot string, proto *com.Proto) error

Generate TODO

func (*GoGenerator) SetFileImpl

func (g *GoGenerator) SetFileImpl(name string, f *com.File) error

Jump to

Keyboard shortcuts

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