Documentation
¶
Overview ¶
Package main demonstrates how to integrate procio with lifecycle.
This example shows the canonical ObserverBridge pattern (ADR-11): a single struct that satisfies both procio.Observer and lifecycle.Observer, eliminating the need for any adapter wrapper.
This file also acts as a compile-time contract test: if procio.Observer or lifecycle.Observer changes in a breaking way, this file fails to build.
Run: go run ./examples/lifecycle_bridge/
Click to show internal directories.
Click to hide internal directories.