Documentation ¶ Index ¶ type Node type Stack func New() *Stack func (as *Stack) Clear() func (as *Stack) Empty() bool func (as *Stack) Peek() (interface{}, bool) func (as *Stack) Pop() (interface{}, bool) func (as *Stack) Push(v interface{}) func (as *Stack) Size() uint func (as *Stack) String() string func (as *Stack) Values() []interface{} Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Node ¶ type Node struct { // contains filtered or unexported fields } type Stack ¶ type Stack struct { // contains filtered or unexported fields } func New ¶ func New() *Stack func (*Stack) Clear ¶ func (as *Stack) Clear() func (*Stack) Empty ¶ func (as *Stack) Empty() bool func (*Stack) Peek ¶ func (as *Stack) Peek() (interface{}, bool) func (*Stack) Pop ¶ func (as *Stack) Pop() (interface{}, bool) func (*Stack) Push ¶ func (as *Stack) Push(v interface{}) func (*Stack) Size ¶ func (as *Stack) Size() uint func (*Stack) String ¶ func (as *Stack) String() string String 从左到右 左边第一个表示Top 如链表 a(top)->b->c func (*Stack) Values ¶ func (as *Stack) Values() []interface{} Source Files ¶ View all Source files stack.go Click to show internal directories. Click to hide internal directories.