protoutil

package
v0.12.10 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProtocVersion

func ProtocVersion(gen *protogen.Plugin) string

func ToArrayString added in v0.12.0

func ToArrayString(values map[int]string) string

ToArrayString convert to array string format [0:aaa,1:bbb,3:ccc]

Types

type CommentLines added in v0.12.0

type CommentLines []string

CommentLines comment the line like `// xxxx`

func NewCommentLines added in v0.12.0

func NewCommentLines(s protogen.Comments) CommentLines

func (*CommentLines) Append added in v0.12.0

func (c *CommentLines) Append(s string) CommentLines

func (CommentLines) Derives added in v0.12.2

Derives all match the derive and remaining comment lines.

func (CommentLines) FindDerives added in v0.12.2

func (c CommentLines) FindDerives(identity string) (annotation.Derives, CommentLines)

Annotations find `identity` match the annotation and remaining comment lines.

func (CommentLines) LineString added in v0.12.0

func (c CommentLines) LineString() string

LineString one line string.

func (CommentLines) String added in v0.12.0

func (c CommentLines) String() string

type Source added in v0.8.5

type Source struct {
	Path         string
	IsDeprecated bool
}

Source proto file source

Jump to

Keyboard shortcuts

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