proto

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	PackageName string
	Options     map[string]string
	Enums       []string
	Messages    []string
	Services    []string
}

File is a very incomplete proto file descriptor.

func ParseFile

func ParseFile(filename string) (*File, error)

ParseFile parses some elements of a proto file.

Bugs: - it does not handle multi line options - it is very incomplete

Todo: - explore using https://github.com/tallstoat/pbparser instead

func (*File) Symbols

func (f *File) Symbols() []string

Jump to

Keyboard shortcuts

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