Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/opensourcedoc/algo-golang
- Owner: opensourcedoc
- License: mit
- Created: 2017-05-18T12:31:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-02T05:18:50.000Z (almost 3 years ago)
- Last Synced: 2024-06-21T17:03:36.107Z (6 months ago)
- Topics: algorithm, algorithms, data-structures, generics, golang, golang-package
- Language: Go
- Homepage:
- Size: 51.8 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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