ent

package
v0.0.0-...-908e76c Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Printer

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

func (*Printer) PrintQuery

func (p *Printer) PrintQuery(out io.Writer, ent *v1.Ent, pkg string) error

type Walk

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

Walk is a ent query generator. It generates a ent query from protogen result.

func NewWalk

func NewWalk(indir string, outdir string, pkg string) (*Walk, error)

NewWalk creates a new Walk.

indir is a directory where the protogen result files are placed. It contains protojson encoded v1.Ent files.

outdir is a directory where the generated files are placed.

pkg is a package name of the generated files.

func (*Walk) Walk

func (w *Walk) Walk() error

Directories

Path Synopsis
Code generated by ent-gen.
Code generated by ent-gen.

Jump to

Keyboard shortcuts

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