agent/pkg/monitor/register_example_test.go
Virgil f0c903d8c3 fix(ax): replace typed service lookups with Core.Service
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-31 05:43:14 +00:00

16 lines
311 B
Go

// SPDX-License-Identifier: EUPL-1.2
package monitor
import core "dappco.re/go/core"
func ExampleRegister_ipc() {
c := core.New(core.WithService(Register))
service := c.Service("monitor")
svc, ok := service.Value.(*Subsystem)
core.Println(ok)
core.Println(svc.Name())
// Output:
// true
// monitor
}