generator

package
v0.0.0-...-6a21e17 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2018 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

type Function string

Function represents a CRUD function to be generated

const (
	Create Function = "create"
	Get    Function = "get"
	List   Function = "list"
	Update Function = "update"
	Delete Function = "delete"
)

Enum for CRUD functions

type Generator

type Generator interface {
	// Generate generates CRUD code for the passed in functions
	Generate(io.Writer, ...Function) error
}

Generator generates CRUD code from a struct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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