stack

package
v0.0.0-...-91e001f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeStack

type NodeStack[T any] struct {
	// contains filtered or unexported fields
}

NodeStack 用于解析html时缓存

func NewNodeStack

func NewNodeStack[T any]() *NodeStack[T]

NewNodeStack 返回ParentStack,设置第一个元素为nil,用作扫描的初始化状态

func (*NodeStack[T]) Clear

func (s *NodeStack[T]) Clear()

func (*NodeStack[T]) Pop

func (s *NodeStack[T]) Pop() (T, bool)

func (*NodeStack[T]) Push

func (s *NodeStack[T]) Push(e T)

func (*NodeStack[T]) Top

func (s *NodeStack[T]) Top() (T, bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL