Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPGen ¶
func HTTPGen(toPackage string, an ast.AnnotationDeclaration, str ast.StructDeclaration, pkgDeclr ast.PackageDeclaration, pkg ast.Package) ([]gen.WriteDirective, error)
HTTPGen generates http crud for giving struct declaration.
Types ¶
type Action ¶
type Action struct {
Object string
Package string
IsStruct bool
IsSame bool
Struct ast.StructDeclaration
Type ast.TypeDeclaration
}
Action defines a type that holds the name of a giving action type.
Click to show internal directories.
Click to hide internal directories.