Documentation
¶
Index ¶
- Variables
- func ConsoleLogger(e Event)
- func ErrIndexOutOfBounds(i int) error
- func ErrNotEnoughArgs(have int, want int) error
- func TestLogger(t *testing.T) func(Event)
- type Dispatcher
- type Event
- type Listener
- type Pool
- type Stack
- func (s *Stack[T]) Clear()
- func (s *Stack[T]) Clone() Stack[T]
- func (s *Stack[T]) Debug(on bool)
- func (s *Stack[T]) Drop()
- func (s *Stack[T]) Get(i int) T
- func (s *Stack[T]) Items() []T
- func (s *Stack[T]) Len() int
- func (s *Stack[T]) Pop() T
- func (s *Stack[T]) Push(vals ...T)
- func (s *Stack[T]) Rotate()
- func (s *Stack[T]) Set(i int, v T)
- func (s *Stack[T]) SetItems(items []T)
- func (s *Stack[T]) String() string
- func (s *Stack[T]) Top() T
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStackEmpty = errors.New("stack empty")
View Source
var NullState = nullState{}
Functions ¶
func ConsoleLogger ¶
func ConsoleLogger(e Event)
func ErrIndexOutOfBounds ¶
func ErrNotEnoughArgs ¶
func TestLogger ¶
Types ¶
type Dispatcher ¶
type Dispatcher struct {
Listener Listener
}
func (*Dispatcher) Emit ¶
func (d *Dispatcher) Emit(t string)
type Stack ¶
type Stack[T any] struct { Dispatcher // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.