Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/opensourcedoc/algo-golang

Data Structures and Algorithms in Golang
https://github.com/opensourcedoc/algo-golang

algorithm algorithms data-structures generics golang golang-package

Last synced: about 2 months ago
JSON representation

Data Structures and Algorithms in Golang

Awesome Lists containing this project

README

        

# Data Structures and Algorithms in Go

The repo implements common data structures and algorithms in Go.

## Intro

Since Go lacks generics, more boilerplate code are needed when implementing data structures. There are several ways to implementing generics-like behaviors

- Code generation, e.g. [genny](https://github.com/cheekybits/genny)
- Use interface as in sort.Sort
- Dynamic typing, using empty interface (as C void*)

We adapt the third approach, delegating some tasks to users.

## Copyright

Copyright (c) 2017 Michelle Chen. Licensed under MIT