Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

mehdieidi/gods

Repository files navigation

[DEPRECATED] (Use https://github.com/golang-ds)

Library of generic data structures for Go.

Install

$ go get github.com/MehdiEidi/gods

Import

import "github.com/MehdiEidi/gods"

Usage

Either use convenience helper functions in gods package like this:
Example: Creating a new set:

s := gods.NewSet[string]()

s.Add("awesome :D")

or directly import the intended data structure and use its factory function:

import "github.com/MehdiEidi/gods/set"
.
.
.

s := set.New[string]()
s.Add("again awesome :D")