structs

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 0 Imported by: 5

Documentation

Overview

Package structs provides common data structure interfaces and implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue interface {
	// Pop removes and returns the element at the front of the queue.
	// Returns nil if the queue is empty.
	Pop() interface{}

	// Push adds an element to the back of the queue.
	// The element v can be of any type.
	Push(v interface{})
}

Queue defines a basic queue (FIFO - First In, First Out) interface. This interface provides the fundamental operations for queue data structures.

Jump to

Keyboard shortcuts

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