Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/dvirsky/go-trie

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/dvirsky/go-trie

  • v0.0.0-20120925015535-2fac99a48bae
  • Source
  • Go
  • Socket score

Version published
Created
Source

go-trie (WORK IN PROGRESS)

A pure-Go implementation of a Trie data structure for strings.

Installation

$ go get github.com/cespare/go-trie

Usage

Very simple example usage.

import (
  "github.com/cespare/go-trie"
)

t = trie.New()
t.Add("Hello!")
t.Contains("Hello!")   // => true
t.Contains("Goodbye!") // => false

Please see the API documentation for more information and more advanced usage.

Author

Caleb Spare (cespare)

To Do

  • Finish a working implementation!
  • The trie.Retrieve method(s) don't need to do a node-by-node walk -- they can do a more efficient search by doing a direct byte-by-byte comparison as soon as we get to the tail.
  • Reading/writing from disk

License

MIT Licensed.

FAQs

Package last updated on 25 Sep 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc