xcontainer

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 1 Imported by: 0

README

xcontainer

Description

Welcome to our project! This project provides some basic data structures implemented using golang.

Install

Use go get to install this package.

go get github.com/danielhookx/xcontainer

Notice

  • Generics based implementation (requires Go 1.20 or higher)
  • All implementations are not threadsafe

Member list

  • graph
  • heap
  • list
  • ordered map
  • queue
  • set
  • stack
  • tree
License

xcontainer is under the MIT license. See the LICENSE file for details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNil

func IsNil[T any](t T) bool

Types

type CancelHandler

type CancelHandler func()

type Float

type Float interface {
	~float32 | ~float64
}

type Int

type Int interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64
}

type IterateHandler

type IterateHandler[T any] func() (T, bool)

type Iterator

type Iterator[T any] interface {
	Iterate() (IterateHandler[T], CancelHandler)
}

type Orderliness

type Orderliness interface {
	Int | Uint | Float | ~string
}

type Uint

type Uint interface {
	~uint | ~uint8 | ~uint16 | ~uint32 | ~int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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