Documentation ¶
Index ¶
- func WriteFile(filename string, data []byte) error
- type CodeGen
- func (g *CodeGen) Bytes() []byte
- func (g *CodeGen) FormatSource() ([]byte, error)
- func (g *CodeGen) GenDDL() *CodeGen
- func (g *CodeGen) GenMapper() *CodeGen
- func (g *CodeGen) GenModel() *CodeGen
- func (g *CodeGen) GenRapier(modelImportPath string) *CodeGen
- func (g *CodeGen) Print(a ...any) (n int, err error)
- func (g *CodeGen) Printf(format string, a ...any) (n int, err error)
- func (g *CodeGen) Println(a ...any) (n int, err error)
- func (g *CodeGen) Write(b []byte) (n int, err error)
- type CodeGenRapier
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
func (*CodeGen) Print ¶
Print formats using the default formats for its operands and writes to the generated output. Spaces are added between operands when neither is a string. It returns the number of bytes written and any write error encountered.
func (*CodeGen) Printf ¶
Printf formats according to a format specifier for its operands and writes to the generated output. It returns the number of bytes written and any write error encountered.
type CodeGenRapier ¶ added in v0.16.0
type CodeGenRapier struct { OutputDir string // contains filtered or unexported fields }
func NewCodeGenRapier ¶ added in v0.16.0
func NewCodeGenRapier(outputDir string, opts ...Option) *CodeGenRapier
type Option ¶
type Option func(*CodeGen)
func WithByName ¶
WithByName the code generator by which executables name.
func WithDisableDocComment ¶
func WithHasColumn ¶
func WithOptions ¶
func WithPackageName ¶
func WithSkipColumns ¶
func WithVersion ¶
Click to show internal directories.
Click to hide internal directories.