ThomasHuke / godata

Basic data structures and operations written in Go, such as trie, queue etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

godata

Basic data structures and operations written in Go which golang.org/pkg/container don't support such as stack, queue, etc.

Quick start

package main
import(
  "github.com/googege/godata"
)
func main(){
// stack
    stack := godata.NewStack(5)
    stack.Push(1)
    stack.Length()
    stack.Top()
    stack.Pop()
// trie
    trie := NewTrie()
    trie.Insert("hello world")
    trie.Insert("hello China")
    trie.Insert("hello My dear")
    trie.Search("hello world")
    trie.StartWith("he")
    trie.Image("he")
}

HERE

项目 介绍
对我的赞助 p
便宜服务器推荐 阿里云梯子服务器:支持支付宝
微信公众号 p
知识讨论微信群 p
我的社交平台 b站YouTube微博,抖音:googege

About

Basic data structures and operations written in Go, such as trie, queue etc.

License:MIT License


Languages

Language:Go 100.0%