package
Version:
v0.1.9
Opens a new window with list of versions in this module.
Published: Nov 20, 2026
License: MIT
Opens a new window with license information.
Imports: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package codegen generates the same CRUD source for the admin UI and CLI.
Generate reads metadata and returns source files without writing them.
Indexes includes unique constraints omitted by some GORM drivers.
Tables lists business tables without filtering by a table-name prefix.
Write creates generated files under output without replacing existing source.
A failed write removes only the files created by this call.
type Options struct {
Table, Resource, Directory, Mode, Module string
Backend, Frontend string
Migration bool
}
Options selects the source table and output layout, relative to the output root.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.