moved packages out of pkg

This commit is contained in:
2026-02-04 18:57:33 +11:00
parent d2b1a252ea
commit 20308fe35c
24 changed files with 41 additions and 36 deletions

View File

@@ -0,0 +1,16 @@
package contexts
import "context"
func DevMode(ctx context.Context) DevInfo {
devmode, ok := ctx.Value(DevModeKey).(DevInfo)
if !ok {
return DevInfo{}
}
return devmode
}
type DevInfo struct {
WebsocketBase string
HTMXLog bool
}