Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/iguchi1124/doublearray

An implementation of trie tree for golang
https://github.com/iguchi1124/doublearray

Last synced: 17 days ago
JSON representation

An implementation of trie tree for golang

Awesome Lists containing this project

README

        

# doublearray

[![Build Status](https://travis-ci.org/iguchi1124/doublearray.svg?branch=master)](https://travis-ci.org/iguchi1124/doublearray)

Provides the `doublearray` package that implements a double-array trie tree.

## Documentation

The full documentation is available on [GoDoc](https://godoc.org/github.com/iguchi1124/doublearray).

## Example

```go
dict := []string{"apple", "orange", "pineapple"}
trie := doublearray.New(dict)
trie.ExactMatchSearch("apple") // true
trie.ExactMatchSearch("banana") // false
```

## License

MIT