generator

package
v0.0.0-...-df85706 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 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
Code generated by go-queryset.
Code generated by go-queryset.
pkgimport
Code generated by go-queryset.
Code generated by go-queryset.

Jump to

Keyboard shortcuts

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