Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stack ¶
type Stack[T any] []T
Stack[T] is a stack of [Node]. Used for keeping parent/child relationship during HTML tokenization.
func (*Stack[T]) Peek ¶
func (self *Stack[T]) Peek() (out T)
Peek returns the last node added to the stack or nil if queue is empty.
Click to show internal directories.
Click to hide internal directories.