Documentation ¶
Index ¶
- func AdaptGoTypeToProto(f *types.Var) string
- func AdaptNameToProto(name string) string
- func IsRepeated(f *types.Var) bool
- func LoadPackages(pwd string, pkgs []string) ([]*packages.Package, error)
- func NormalizeType(name string) string
- func SplitNameHelper(f *types.Var) string
- func WriteToFile(version int, msgs []*ProtoMessage, path string, outputFileName string) error
- type ArrFlags
- type MessageField
- type ProtoFileTemplateData
- type ProtoMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdaptGoTypeToProto ¶
func AdaptNameToProto ¶
func IsRepeated ¶
func NormalizeType ¶
func SplitNameHelper ¶
func WriteToFile ¶
func WriteToFile(version int, msgs []*ProtoMessage, path string, outputFileName string) error
Types ¶
type MessageField ¶
type ProtoFileTemplateData ¶
type ProtoFileTemplateData struct { Version int Messages []*ProtoMessage }
type ProtoMessage ¶
type ProtoMessage struct { Name string Fields []*MessageField }
func GetMessages ¶
func GetMessages(pkgs []*packages.Package, filter string) []*ProtoMessage
func StructToProto ¶
func StructToProto(out []*ProtoMessage, t types.Object, s *types.Struct) []*ProtoMessage
Click to show internal directories.
Click to hide internal directories.