Documentation
¶
Overview ¶
Package stack provides reusable stack helpers for validation/runtime state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stack ¶
type Stack[T any] struct { // contains filtered or unexported fields }
Stack is a reusable LIFO stack for validation state.
func (*Stack[T]) Drop ¶
func (s *Stack[T]) Drop()
Drop clears the stack and releases backing storage.
func (*Stack[T]) Items ¶
func (s *Stack[T]) Items() []T
Items returns the stack backing slice in push order.
Click to show internal directories.
Click to hide internal directories.