stack

package
v0.0.0-...-c7d747a Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

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