Documentation
¶
Index ¶
- Constants
- Variables
- func Check(cmd *cobra.Command) (err error)
- func Connect(dbConfig gorm.Dialector) (err error)
- func CreateByStub[T Stub](filePath, stub string, stubStruct T) (err error)
- func GetTemplateParse(filePath string) (*template.Template, error)
- func SetupDB()
- type AppBase
- type Apply
- type Stub
Constants ¶
View Source
const ( Http = "http" Grpc = "grpc" Websocket = "websocket" )
Variables ¶
View Source
var ( App string Module string Pwd string Mod string BlackCmd = []string{ "ginctl", "version", } )
View Source
var (
DB *gorm.DB
)
View Source
var (
TemplateCache sync.Map
)
Functions ¶
func CreateByStub ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.