viewstack

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 1 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 struct {
	// contains filtered or unexported fields
}

func (*Stack) Len

func (s *Stack) Len() int

Len returns how many views are on the stack

func (*Stack) Pop

func (s *Stack) Pop() view.View

Pop returns the last view and removes it from the stack

func (*Stack) Push

func (s *Stack) Push(v view.View)

Push a view onto the stack, capping at 10 entries.

func (*Stack) Reset

func (s *Stack) Reset()

Reset clears the stack

func (*Stack) Views

func (s *Stack) Views() []view.View

Views returns the full stack (shallow copy)

Jump to

Keyboard shortcuts

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