function
NewBlockRegistry
NewBlockRegistry snapshots and resolves a finite registry. Forward references are supported; cycles and duplicate declarations are configuration errors.
Arguments
| Argument | Type | Description |
|---|---|---|
blocks | []Block | The blocks value. |
Returns
The declared result.
(BlockRegistry, error)Full signature
func NewBlockRegistry(blocks ...Block) (BlockRegistry, error)Related types
BlockBlock is one discriminated layout allowed by a blocks field.
BlockRegistryBlockRegistry owns immutable, centrally declared block definitions. Bind makes references traversable without granting a referencing resource mutation rights.