Documentation
¶
Index ¶
- func ForceGenerateTpl(text string, data any, targetPath string) error
- func GenerateFile(path string, content []byte) error
- func GenerateTpl(text string, data any, targetPath string, force bool) error
- type ColaCurd
- type ColaCurdTableField
- type ColaCurdTplArgs
- type ColaSkeleton
- type ColaSkeletonTplArgs
- type Executor
- type Wire
- type WireAutoloadFunc
- type WireController
- type WireMethods
- type WireTplArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateFile ¶
Types ¶
type ColaCurd ¶
type ColaCurd struct { TplArgs *ColaCurdTplArgs // contains filtered or unexported fields }
func NewColaCurd ¶
func (*ColaCurd) Initialize ¶
func (cs *ColaCurd) Initialize()
type ColaCurdTableField ¶
type ColaCurdTplArgs ¶
type ColaSkeleton ¶
type ColaSkeleton struct { TplArgs *ColaSkeletonTplArgs // contains filtered or unexported fields }
func NewColaSkeleton ¶
func NewColaSkeleton(mod mod.Mod, force bool) *ColaSkeleton
func (*ColaSkeleton) Execute ¶
func (cs *ColaSkeleton) Execute() error
func (*ColaSkeleton) Initialize ¶
func (cs *ColaSkeleton) Initialize()
func (*ColaSkeleton) Name ¶
func (cs *ColaSkeleton) Name() string
type ColaSkeletonTplArgs ¶
type ColaSkeletonTplArgs struct {
ModName string
}
type Executor ¶
func GetColaCurdExecutors ¶
type Wire ¶
type Wire struct { TplArgs *WireTplArgs // contains filtered or unexported fields }
func (*Wire) Initialize ¶
func (w *Wire) Initialize()
type WireAutoloadFunc ¶
type WireController ¶
type WireController struct { Name string Uniqid string Methods map[string]*WireMethods }
type WireMethods ¶
type WireTplArgs ¶
type WireTplArgs struct { Imports map[string]string BindStructs map[string]string InjectsFuncs []string AutoloadFuncs map[string]*WireAutoloadFunc Routers map[string]*WireController }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.