stack

package
v1.0.0-beta.60.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PkgStack

type PkgStack struct {
	// contains filtered or unexported fields
}

func NewPkgStack

func NewPkgStack() *PkgStack

NewPkgStack returns a new stack for elements of *pkg.Pkg type.

func (*PkgStack) Len

func (ps *PkgStack) Len() int

func (*PkgStack) Pop

func (ps *PkgStack) Pop() *pkg.Pkg

func (*PkgStack) Push

func (ps *PkgStack) Push(p *pkg.Pkg)

func (*PkgStack) PushAll

func (ps *PkgStack) PushAll(pkgs []*pkg.Pkg)

type Stack

type Stack struct {
	// contains filtered or unexported fields
}

func New

func New() *Stack

New returns a new stack for elements of string type.

func (*Stack) Len

func (s *Stack) Len() int

func (*Stack) Pop

func (s *Stack) Pop() string

func (*Stack) Push

func (s *Stack) Push(str string)

Jump to

Keyboard shortcuts

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