generator

package
v0.0.0-...-f5836ce Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(options GenerateOptions)

func ParseReturnType

func ParseReturnType(fn *ast.FuncDecl) decoratorparser.ReturnType

ParseReturnType returns the return type of the function

Types

type GenerateOptions

type GenerateOptions struct {
	Directory         string
	ControllersFolder string
	// Give the packageName and importing file's path, this function should return the import path of the package.
	ResolveModelFolder func(string, string) string
}

Jump to

Keyboard shortcuts

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