htmgo/partials/generated.go

27 lines
761 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 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)
}
if path == "PatientList" || path == "/mhtml/partials.PatientList" {
return PatientList(ctx)
}
2024-09-11 18:09:55 +00:00
if path == "AddPatientSheet" || path == "/mhtml/partials.AddPatientSheet" {
return AddPatientSheet(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
}