stack

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stack

type Stack []map[string]string

Stack is a stack of XML namespace declarations.

func (*Stack) Get

func (s *Stack) Get(name string) (string, bool)

Get fetches the URI for a name (or the empth string if not found) and whether the name was found at all. Definitions closer to the top of the stack take predence over values further from the top.

func (*Stack) GetAll

func (s *Stack) GetAll() map[string]string

GetAll returns all names in the stack, and their current values. Definitions closer to the top of the stack take predence over values further from the top.

func (*Stack) Len

func (s *Stack) Len() int

Len returns depth of the stack.

func (*Stack) Pop

func (s *Stack) Pop()

Pop pops the top of the name stack.

func (*Stack) Push

func (s *Stack) Push(names map[string]string)

Push pushes a set of names and their corresponding URIs to the top of the stack.

Jump to

Keyboard shortcuts

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