generator

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateForStructs added in v1.1.0

func GenerateForStructs(types *types.Package, structs map[string]parser.ParsedStruct, tmpl *template.Template) (io.Reader, error)

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

Types

type Generator

type Generator struct {
	StructsParser *parser.Structs
}

func (Generator) GenerateGinHandlers added in v1.1.0

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

func (Generator) GenerateQuerySet added in v1.1.0

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

type OutputFunc added in v1.1.0

type OutputFunc func(r io.Reader, packageName string, outFile string) error

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