genutil

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type G

type G struct {
	*protogen.GeneratedFile
	// contains filtered or unexported fields
}

func New

func New(file *protogen.GeneratedFile, gen func(*G) Generator) *G

func (*G) F

func (g *G) F(format string, a ...interface{})

func (*G) Generate

func (g *G) Generate() error

func (*G) P

func (g *G) P(v ...interface{})

func (*G) Post

func (g *G) Post(format string, a ...interface{})

func (*G) Pre

func (g *G) Pre(format string, a ...interface{})

func (*G) Q

func (g *G) Q(ident protogen.GoIdent) string

type Generator

type Generator interface {
	Generate() error
}

Jump to

Keyboard shortcuts

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