Documentation ¶
Index ¶
- Variables
- func Validate(to any, c echo.Context) bool
- type Gox
- func (g *Gox) AddModel(model any)
- func (g *Gox) AddTemplateFunction(name string, fn any)
- func (g *Gox) AddTemplates(dir fs.FS, names map[string]string)
- func (g *Gox) Migrate() error
- func (g *Gox) RenderTemplate(name string, data any) (string, error)
- func (g *Gox) UseDatabase(db *gorm.DB) error
- func (g *Gox) UsePostgreSQL(addr string) error
- func (g *Gox) UseSQLite(addr string) error
- func (g *Gox) WithGox(handler GoxHandlerFunc) echo.HandlerFunc
- type GoxHandlerFunc
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Gox ¶
func (*Gox) AddTemplateFunction ¶
func (*Gox) UsePostgreSQL ¶
func (*Gox) WithGox ¶
func (g *Gox) WithGox(handler GoxHandlerFunc) echo.HandlerFunc
type GoxHandlerFunc ¶
Click to show internal directories.
Click to hide internal directories.