Documentation ¶
Overview ¶
parse package and generate interface
Get the message definitions by parsing a proto file No go files
copy from encoding/json
go type
Index ¶
- func GenerateChiRoutes(path string, pkg *Package, dep map[string]*Package) error
- func GenerateDartCode(path string, pkg *Package, dep map[string]*Package) error
- func GenerateGsrv(path string, modulePath string, pkg *Package, dep map[string]*Package) error
- func GenerateProtoFile(path string, moduleBasePath string, pkg *Package, dep map[string]*Package) error
- func GenerateSwiftCode(path string, pkg *Package, _ map[string]*Package) error
- func GenerateTSAngularDelonCode(path string, pkg *Package, dep map[string]*Package) error
- func GenerateTSCode(path string, pkg *Package, dep map[string]*Package) error
- func GetModulePath(root string) string
- func ParseProtoFile(path string) (*protoParser, error)
- func VisitNormalField(m *proto.NormalField)
- type Field
- type Method
- type MethodArr
- type MethodType
- type Package
- type Struct
- type StructArr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateChiRoutes ¶
GenerateRoutes generate routes for package using template.
func GenerateDartCode ¶
GenerateDartCode generate dart code
func GenerateGsrv ¶
GenerateGsrv generate grpc server
func GenerateProtoFile ¶
func GenerateSwiftCode ¶
GenerateSwiftCode generate swift code
func GenerateTSCode ¶
GenerateTSCode generate ts code
func GetModulePath ¶
func ParseProtoFile ¶
func VisitNormalField ¶
func VisitNormalField(m *proto.NormalField)
Types ¶
type Package ¶
func ParsePackage ¶
Path is the path of the package modulePath is the name of the module which the package belongs to
Source Files ¶
Click to show internal directories.
Click to hide internal directories.