stack

package
v0.0.0-...-2e8ce5b Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

====================================================

# Copyright (C)2019 All rights reserved. # # Author : domchan # Email : 814172254@qq.com # File Name : stack.go # Created : 2019-01-30 11:35:06 # Describe : # # ====================================================

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Value []byte
}

Item 栈中的每个元素

type Stack

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

Stack 栈

func New

func New() *Stack

New 初始化一个栈

func (*Stack) Flush

func (s *Stack) Flush()

Flush 清空栈

func (*Stack) Pop

func (s *Stack) Pop() *Item

Pop 出栈

func (*Stack) Push

func (s *Stack) Push(t *Item)

Push 入栈

func (*Stack) Value

func (s *Stack) Value() []*Item

Value 获取栈中所有值

Jump to

Keyboard shortcuts

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