package
Version:
v0.0.0-...-bb18aec
Opens a new window with list of versions in this module.
Published: Dec 17, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Stack[T any] struct {
}
func (s *Stack[T]) Peek() T
Peek 栈顶元素
func (s *Stack[T]) Pop() T
Pop 出栈
func (s *Stack[T]) Push(elem T)
Push 入栈
Source Files
¶
Click to show internal directories.
Click to hide internal directories.