Skip to content
/ Module Generation

Documentation

Module Generation

Generate a full feature module from one command.

A module is one feature slice of your app. One command scaffolds all of it:

bash
goclean make:module Product name:string price:float stock:int

What gets generated

  • Domain — the entity and repository interface.
  • Usecase — business logic for the module.
  • Delivery — DTOs, handler and route registration.
  • Infrastructure — the GORM repository implementation.
  • Migrations — a migration for the module's table.

Field syntax

Each field is written as name:type. The example above defines name as a string, price as a float and stock as an int.