- Go 1.25 or newer, matching the module
godirective. - A Gnalloy application, recipe, example, or benchmark harness that owns lifecycle and deployment configuration.
- Standalone module verification should set
GOWORK=offso the module is tested through its published dependency graph.
go get gnalloy.org/protocol@devimport "gnalloy.org/protocol"- Configuration is passed through explicit constructors and option structs rather than package-level mutable state.
- Keep hot-path defaults conservative, bounded, and allocation-aware.
Use the API inventory to choose the exact constructor or option type for your protocol path:
go doc gnalloy.org/protocolCommon current entry points:
var ErrInvalidConfig = errors.New("gnalloy/protocol: invalid config") ...func NewServerHandler(adapter ServerAdapter, handler Handler) channel.Handler
When multiple Gnalloy repositories are developed together, create a local go.work file in your chosen workspace. Keep application-local replace directives out of published library modules unless the change is intentionally temporary and never committed.
Network input, peer behavior, platform capability, and timeout failures must be handled as normal errors. Do not recover protocol correctness by panicking. Return or propagate the module error and close the affected Channel when ownership requires it.