Documentation
¶
Index ¶
- Constants
- func NewInertia(rootTemplatePath string, opts ...gonertia.Option) *gonertia.Inertia
- func RenderTemplate(w http.ResponseWriter, tmpl string, data *TemplateData) error
- func Vite(manifestPath, buildDir string) func(path string) (string, error)
- type AlertMessage
- type InertiaFlashProvider
- type TemplateData
Constants ¶
View Source
const InertiaBuildPath = "/public/build/"
View Source
const InertiaManifestPath = "./public/build/manifest.json"
View Source
const InertiaRootTemplatePath = "resources/views/root.html"
View Source
const ViteHotPath = "./public/hot"
Variables ¶
This section is empty.
Functions ¶
func NewInertia ¶
func RenderTemplate ¶
func RenderTemplate(w http.ResponseWriter, tmpl string, data *TemplateData) error
Types ¶
type AlertMessage ¶
type InertiaFlashProvider ¶
type InertiaFlashProvider struct {
// contains filtered or unexported fields
}
func NewInertiaFlashProvider ¶
func NewInertiaFlashProvider() *InertiaFlashProvider
func (*InertiaFlashProvider) FlashErrors ¶
func (p *InertiaFlashProvider) FlashErrors(ctx context.Context, errors gonertia.ValidationErrors) error
func (*InertiaFlashProvider) GetErrors ¶
func (p *InertiaFlashProvider) GetErrors(ctx context.Context) (gonertia.ValidationErrors, error)
Click to show internal directories.
Click to hide internal directories.