cue

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator() *Generator

func (*Generator) AddFile

func (g *Generator) AddFile(p string, f *protogen.File)

func (*Generator) GenerateFile

func (g *Generator) GenerateFile(ctx context.Context, p string) (*ast.File, error)

func (*Generator) Import

func (g *Generator) Import(ctx context.Context, p protogen.GoImportPath, alias, name string, resolve bool) (ast.Expr, error)

func (*Generator) ResolveGoType

func (g *Generator) ResolveGoType(ctx context.Context, ident protogen.GoIdent) (ast.Expr, error)

func (*Generator) UseBuiltinType

func (g *Generator) UseBuiltinType(ctx context.Context, name string) ast.Expr

Jump to

Keyboard shortcuts

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