generickit

package module
v0.0.0-...-dde8be3 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

README

generickit

generickit is a tool kit featured by Golang Generic. It offers a range of helper/utility methods for commonly-used data structures.

Install

Requirement: Go Release >= v1.18.

In case u got trouble downloading in CN mainland, please enable $GOPROXY by this link and try again.

$ go get github.com/KokoiRuby/generickit@latest
  • slice: Insert, Delete, Aggregate, Reverse, Shrink, Generator, Find, Contains, MapReduce.
  • mapx: Keys, Values, KeysValues, ToMap, SyncMap, HashMap.
  • setx: MapSet.
  • list: ArrayList, ConcurrentList, LinkedList (Circular + Doubly).
  • queue: ConcurrentLinked[Blocking]Queue, ConcurrentArrayBlockingQueue.
  • bean: Option.
  • sync: Pool, Map.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Number

type Number interface {
	RealNumber | ~complex64 | ~complex128
}

type RealNumber

type RealNumber interface {
	~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 |
		~int | ~int8 | ~int16 | ~int32 | ~int64 |
		~float32 | ~float64
}

Directories

Path Synopsis
bean

Jump to

Keyboard shortcuts

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