stackKit

package
v1.3.12 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 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 Stack

type Stack[V any] interface {
	Push(ele V)

	// Pop
	/*
		@return 被拿出来的元素 + 是否成功拿出数据?
	*/
	Pop() (V, bool)

	Size() int
}

func NewStack

func NewStack[V any](safe bool) Stack[V]

NewStack

@param safe 是否goroutines安全? @return 必定不为nil

Jump to

Keyboard shortcuts

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