package
module
Version:
v0.0.0-...-d3f1a78
Opens a new window with list of versions in this module.
Published: Sep 28, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Stack interface {
Len() int
Push(interface{})
Pop() (interface{}, error)
Clear()
}
type SyncStack struct {
}
Len returns the number of elements in the stack.
Pop removes the top element from the stack and returns it. If the stack is empty then this function will return nil.
Push pushes a new element on to the stack.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.