package
Version:
v0.0.0-...-f39cbe0
Opens a new window with list of versions in this module.
Published: Sep 3, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Queue[T any] struct {
Queue []T
}
func (q *Queue[T]) Pop() T
func (q *Queue[T]) Push(item T)
type Stack[T any] struct {
Stack []T
}
Stack is a generic stack implementation
func (q *Stack[T]) Pop() T
Pop removes and returns the last item from the stack
func (q *Stack[T]) Push(item T)
Push adds an item to the stack
Source Files
¶
Click to show internal directories.
Click to hide internal directories.