htmgo/partials/generated.go

31 lines
924 B
Go
Raw Normal View History

2024-09-11 00:52:18 +00:00
// Package partials THIS FILE IS GENERATED. DO NOT EDIT.
package partials
import "mhtml/h"
import "github.com/gofiber/fiber/v2"
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 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 NewsSheetOpenCount(ctx)
}
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 == "Close" || path == "/mhtml/partials/sheet.Close" {
return sheet.Close(ctx)
2024-09-11 00:52:18 +00:00
}
return nil
}