Documentation
¶
Index ¶
- Variables
- func All(name string) (string, error)
- func CreateComponent(name, createType string) (string, error)
- func GetTemplate(createType string) string
- func Handler(name string) (string, error)
- func Model(name string) (string, error)
- func Repository(name string) (string, error)
- func Service(name string) (string, error)
- type CreateData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNameEmpty = errors.New("please provide a name") ErrInvalidType = errors.New("invalid create type") ErrNoProjectName = errors.New("cannot determine project name, ensure go.mod exists") ErrCreateFile = errors.New("failed to create file") ErrExecuteTemplate = errors.New("failed to execute template") )
Functions ¶
func CreateComponent ¶ added in v0.2.0
CreateComponent creates a component file for the given type.
func GetTemplate ¶
GetTemplate returns the template content for the given type.
func Repository ¶
Repository creates a new repository file.
Types ¶
Click to show internal directories.
Click to hide internal directories.