diff --git a/bootstrap/app/events/foo_event.go b/bootstrap/app/events/foo_event.go index 6063612..15b6be7 100644 --- a/bootstrap/app/events/foo_event.go +++ b/bootstrap/app/events/foo_event.go @@ -4,5 +4,3 @@ import "context" // Event handlers func HandleFooEvent(ctx context.Context, event any) {} - -// func HandleFooEvent(ctx context.Context, event any) {} diff --git a/bootstrap/app/views/landing/index.templ b/bootstrap/app/views/landing/index.templ index ee81f93..0212972 100644 --- a/bootstrap/app/views/landing/index.templ +++ b/bootstrap/app/views/landing/index.templ @@ -6,10 +6,15 @@ import ( templ Index() { @layouts.App() { -
-

A single binary to change the world

-
- Getting started +
+
+

superkit

+

+ Build high-performance apps swiftly with minimal team resources. +

+
} diff --git a/kit/kit.go b/kit/kit.go index 61c2d7b..8c11e8f 100644 --- a/kit/kit.go +++ b/kit/kit.go @@ -135,6 +135,14 @@ func WithAuthentication(config AuthenticationConfig, strict bool) func(http.Hand } } +func Getenv(name string, def string) string { + env := os.Getenv(name) + if len(env) == 0 { + return def + } + return env +} + func IsDevelopment() bool { return os.Getenv("APP_ENV") == "development" }