Documentation
¶
Index ¶
- type CodeGen
- func (g *CodeGen) Bytes() []byte
- func (g *CodeGen) FormatSource() ([]byte, error)
- func (g *CodeGen) GenAssist(modelImportPath string) *CodeGen
- func (g *CodeGen) GenDDL() *CodeGen
- func (g *CodeGen) GenMapper() *CodeGen
- func (g *CodeGen) GenModel() *CodeGen
- func (g *CodeGen) P(args ...any) *CodeGen
- func (g *CodeGen) Write(b []byte) (n int, err error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeGen ¶
type CodeGen struct {
// contains filtered or unexported fields
}
func (*CodeGen) FormatSource ¶
FormatSource return formats and adjusts imports contents of the CodeGen's buffer.
type Option ¶
type Option func(*CodeGen)
func WithByName ¶
func WithDisableDocComment ¶
func WithHasColumn ¶
func WithOptions ¶
func WithPackageName ¶
func WithSkipColumns ¶
func WithVersion ¶
Click to show internal directories.
Click to hide internal directories.