generator

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateQuerySetsForStructs

func GenerateQuerySetsForStructs(types *types.Package, structs map[string]parser.ParsedStruct) (io.Reader, error)

GenerateQuerySetsForStructs is an internal method to retrieve querysets generated code from parsed structs

Types

type Generator

type Generator struct {
	StructsParser *parser.Structs
}

func (Generator) Generate

func (g Generator) Generate(ctx context.Context, inFilePath, outFilePath string) error

Generate generates output file with querysets

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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