gui/pkg/window/register.go
Virgil 031c286fb9
Some checks failed
Security Scan / security (push) Has been cancelled
Test / test (push) Has been cancelled
Align GUI packages with AX conventions
2026-04-02 20:51:26 +00:00

17 lines
555 B
Go

// pkg/window/register.go
package window
import "forge.lthn.ai/core/go/pkg/core"
// Register creates a factory closure that captures the Platform adapter.
// The returned function has the signature WithService requires: func(*Core) (any, error).
// Use: core.WithService(window.Register(platform))
func Register(p Platform) func(*core.Core) (any, error) {
return func(c *core.Core) (any, error) {
return &Service{
ServiceRuntime: core.NewServiceRuntime[Options](c, Options{}),
platform: p,
manager: NewManager(p),
}, nil
}
}