Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.