diff --git a/framework/tooling/astgen/go.mod b/framework/tooling/astgen/go.mod index 0216627..b126c04 100644 --- a/framework/tooling/astgen/go.mod +++ b/framework/tooling/astgen/go.mod @@ -1 +1,3 @@ -module github.com/maddalax/mhtml/framework/tooling/astgen \ No newline at end of file +module github.com/maddalax/mhtml/framework/tooling/astgen + +go 1.23.0 \ No newline at end of file diff --git a/framework/tooling/copyassets/go.mod b/framework/tooling/copyassets/go.mod index 15a5ef7..7025e25 100644 --- a/framework/tooling/copyassets/go.mod +++ b/framework/tooling/copyassets/go.mod @@ -1 +1,3 @@ -module github.com/maddalax/mhtml/framework/tooling/copyassets \ No newline at end of file +module github.com/maddalax/mhtml/framework/tooling/copyassets + +go 1.23.0 \ No newline at end of file diff --git a/framework/tooling/downloadtemplate/go.mod b/framework/tooling/downloadtemplate/go.mod index 07b1ee8..3f0d513 100644 --- a/framework/tooling/downloadtemplate/go.mod +++ b/framework/tooling/downloadtemplate/go.mod @@ -1 +1,3 @@ -module github.com/maddalax/mhtml/framework/tooling/downloadtemplate \ No newline at end of file +module github.com/maddalax/mhtml/framework/tooling/downloadtemplate + +go 1.23.0 \ No newline at end of file diff --git a/framework/tooling/mhtml/go.mod b/framework/tooling/mhtml/go.mod index aae49b5..020d87c 100644 --- a/framework/tooling/mhtml/go.mod +++ b/framework/tooling/mhtml/go.mod @@ -1 +1,3 @@ -module github.com/maddalax/mhtml/framework/tooling/mhtml \ No newline at end of file +module github.com/maddalax/mhtml/framework/tooling/mhtml + +go 1.23.0 \ No newline at end of file diff --git a/setup.md b/setup.md index fc9557f..ec71371 100644 --- a/setup.md +++ b/setup.md @@ -1,2 +1 @@ -go install github.com/maddalax/mhtml/framework/tooling/mhtml - +go run github.com/maddalax/mhtml/framework/tooling/mhtml@latest -task template \ No newline at end of file diff --git a/starter-template/features/patient/patient-service.go b/starter-template/features/patient/patient-service.go index 293ff5a..33698a8 100644 --- a/starter-template/features/patient/patient-service.go +++ b/starter-template/features/patient/patient-service.go @@ -4,7 +4,7 @@ import ( "errors" "github.com/gofiber/fiber/v2" "github.com/google/uuid" - "github.com/maddalax/mhtml/starter-template/database" + "starter-template/database" "time" ) diff --git a/starter-template/go.mod b/starter-template/go.mod index 05b2b0e..e2e6ccf 100644 --- a/starter-template/go.mod +++ b/starter-template/go.mod @@ -1,4 +1,4 @@ -module github.com/maddalax/mhtml/starter-template +module starter-template go 1.23.0 diff --git a/starter-template/main.go b/starter-template/main.go index c11e70b..143383a 100644 --- a/starter-template/main.go +++ b/starter-template/main.go @@ -4,9 +4,9 @@ import ( "github.com/gofiber/fiber/v2" "github.com/google/uuid" "github.com/maddalax/mhtml/framework/h" - "github.com/maddalax/mhtml/starter-template/pages" - "github.com/maddalax/mhtml/starter-template/partials/load" "log" + "starter-template/pages" + "starter-template/partials/load" "time" ) diff --git a/starter-template/news/views.go b/starter-template/news/views.go index 75d28a4..f948b56 100644 --- a/starter-template/news/views.go +++ b/starter-template/news/views.go @@ -3,7 +3,7 @@ package news import ( "fmt" "github.com/maddalax/mhtml/framework/h" - "github.com/maddalax/mhtml/starter-template/database" + "starter-template/database" "time" ) diff --git a/starter-template/pages/base/root.go b/starter-template/pages/base/root.go index dad591f..031efeb 100644 --- a/starter-template/pages/base/root.go +++ b/starter-template/pages/base/root.go @@ -2,8 +2,8 @@ package base import ( "github.com/maddalax/mhtml/framework/h" - "github.com/maddalax/mhtml/starter-template/partials" - "github.com/maddalax/mhtml/starter-template/partials/sheet" + "starter-template/partials" + "starter-template/partials/sheet" ) func RootPage(children ...h.Renderable) h.Renderable { diff --git a/starter-template/pages/news.index.go b/starter-template/pages/news.index.go index b29de59..7b83dbc 100644 --- a/starter-template/pages/news.index.go +++ b/starter-template/pages/news.index.go @@ -3,8 +3,8 @@ package pages import ( "github.com/gofiber/fiber/v2" "github.com/maddalax/mhtml/framework/h" - "github.com/maddalax/mhtml/starter-template/pages/base" - "github.com/maddalax/mhtml/starter-template/partials" + "starter-template/pages/base" + "starter-template/partials" ) func ListPage(ctx *fiber.Ctx) *h.Page { diff --git a/starter-template/pages/patients.index.go b/starter-template/pages/patients.index.go index 7f988d0..6fca96a 100644 --- a/starter-template/pages/patients.index.go +++ b/starter-template/pages/patients.index.go @@ -3,8 +3,8 @@ package pages import ( "github.com/gofiber/fiber/v2" "github.com/maddalax/mhtml/framework/h" - "github.com/maddalax/mhtml/starter-template/pages/base" - "github.com/maddalax/mhtml/starter-template/partials/patient" + "starter-template/pages/base" + "starter-template/partials/patient" ) func PatientsIndex(ctx *fiber.Ctx) *h.Page { diff --git a/starter-template/partials/load/generated.go b/starter-template/partials/load/generated.go index d63c129..86892e2 100644 --- a/starter-template/partials/load/generated.go +++ b/starter-template/partials/load/generated.go @@ -3,9 +3,9 @@ package load import "github.com/maddalax/mhtml/framework/h" import "github.com/gofiber/fiber/v2" -import "github.com/maddalax/mhtml/starter-template/partials" -import "github.com/maddalax/mhtml/starter-template/partials/patient" -import "github.com/maddalax/mhtml/starter-template/partials/sheet" +import "starter-template/partials" +import "starter-template/partials/patient" +import "starter-template/partials/sheet" func GetPartialFromContext(ctx *fiber.Ctx) *h.Partial { path := ctx.Path() @@ -34,7 +34,7 @@ func GetPartialFromContext(ctx *fiber.Ctx) *h.Partial { } func RegisterPartials(f *fiber.App) { - f.All("github.com/maddalax/mhtml/starter-template/partials*", func(ctx *fiber.Ctx) error { + f.All("starter-template/partials*", func(ctx *fiber.Ctx) error { partial := GetPartialFromContext(ctx) if partial == nil { return ctx.SendStatus(404) diff --git a/starter-template/partials/news.go b/starter-template/partials/news.go index 1517040..6f545c0 100644 --- a/starter-template/partials/news.go +++ b/starter-template/partials/news.go @@ -5,7 +5,7 @@ import ( "github.com/gofiber/fiber/v2" "github.com/maddalax/mhtml/framework-ui/ui" "github.com/maddalax/mhtml/framework/h" - "github.com/maddalax/mhtml/starter-template/news" + "starter-template/news" ) func NewsSheet(ctx *fiber.Ctx) *h.Partial { diff --git a/starter-template/partials/patient/create.go b/starter-template/partials/patient/create.go index 6e89bd7..f69b1f8 100644 --- a/starter-template/partials/patient/create.go +++ b/starter-template/partials/patient/create.go @@ -3,8 +3,8 @@ package patient import ( "github.com/gofiber/fiber/v2" "github.com/maddalax/mhtml/framework/h" - "github.com/maddalax/mhtml/starter-template/features/patient" - "github.com/maddalax/mhtml/starter-template/partials/sheet" + "starter-template/features/patient" + "starter-template/partials/sheet" ) func Create(ctx *fiber.Ctx) *h.Partial { diff --git a/starter-template/partials/patient/patient.go b/starter-template/partials/patient/patient.go index e18537e..6be13c7 100644 --- a/starter-template/partials/patient/patient.go +++ b/starter-template/partials/patient/patient.go @@ -4,8 +4,8 @@ import ( "github.com/gofiber/fiber/v2" "github.com/maddalax/mhtml/framework-ui/ui" "github.com/maddalax/mhtml/framework/h" - "github.com/maddalax/mhtml/starter-template/features/patient" - "github.com/maddalax/mhtml/starter-template/partials/sheet" + "starter-template/features/patient" + "starter-template/partials/sheet" "strings" )