Documentation
¶
Overview ¶
Package sealed provides a compile-time token that gates construction of [usecase.Result] success values. The Token type has an unexported field, so it cannot be constructed outside this package, and Go's internal/ import rule prevents anything outside pkg/fcsdk/ from importing this package at all.
The combined effect: only packages under pkg/fcsdk/ can mint a Token, and only with a Token can a caller invoke usecase.Success. This is compile-time enforced. Living under pkg/fcsdk/internal/ (rather than the repo-root internal/) is what scopes the seal to the SDK: platform code (internal/platform/...) cannot import it and so cannot mint a Success outside a UnitOfWork Commit*.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.