htmgo/starter-template/partials/load/generated.go

35 lines
1.1 KiB
Go
Raw Normal View History

2024-09-11 00:52:18 +00:00
// Package partials THIS FILE IS GENERATED. DO NOT EDIT.
package load
2024-09-11 00:52:18 +00:00
import "mhtml/h"
import "github.com/gofiber/fiber/v2"
import "mhtml/partials"
2024-09-11 21:08:35 +00:00
import "mhtml/partials/patient"
2024-09-11 17:31:40 +00:00
import "mhtml/partials/sheet"
2024-09-11 00:52:18 +00:00
func GetPartialFromContext(ctx *fiber.Ctx) *h.Partial {
path := ctx.Path()
2024-09-11 17:31:40 +00:00
if path == "NewsSheet" || path == "/mhtml/partials.NewsSheet" {
return partials.NewsSheet(ctx)
2024-09-11 00:52:18 +00:00
}
2024-09-11 17:31:40 +00:00
if path == "NewsSheetOpenCount" || path == "/mhtml/partials.NewsSheetOpenCount" {
return partials.NewsSheetOpenCount(ctx)
2024-09-11 17:31:40 +00:00
}
2024-09-11 21:08:35 +00:00
if path == "Create" || path == "/mhtml/partials/patient.Create" {
return patient.Create(ctx)
2024-09-11 17:31:40 +00:00
}
2024-09-11 21:08:35 +00:00
if path == "List" || path == "/mhtml/partials/patient.List" {
return patient.List(ctx)
}
2024-09-12 02:06:34 +00:00
if path == "AddPatientSheetPartial" || path == "/mhtml/partials/patient.AddPatientSheetPartial" {
return patient.AddPatientSheetPartial(ctx)
2024-09-11 17:31:40 +00:00
}
if path == "ValidateForm" || path == "/mhtml/partials/patient.ValidateForm" {
return patient.ValidateForm(ctx)
}
2024-09-11 17:31:40 +00:00
if path == "Close" || path == "/mhtml/partials/sheet.Close" {
return sheet.Close(ctx)
2024-09-11 00:52:18 +00:00
}
return nil
}