🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

github.com/mattroseman/go-autocomplete

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/mattroseman/go-autocomplete

v0.0.0-20221008165516-604b8bc01499
Source
Go
Version published
Created
Source

Go-Autocomplete

Build Test

Autocomplete library built with Trie data structures.

TESTS

go test -v ./... will run all tests.

TEST COVERAGE

go test ./... -coverprofile=coverage.out will create the coverage report file. go tool cover -html coverage.out will open up an HTML view of the coverage report in your browser

BENCHMARKS

Before running benchmarks, unzip the data/words.zip file to data/words.txt. This file contains a list of english words used to benchmark with many words.

go test -bench=. ./... will run benchmarks.

  • BenchmarkAddWord benchmarks how long it takes on average to add a word to the trie
  • BenchmarkAddWords benchmarks how long it takes to add the english dictionary to the trie

FAQs

Package last updated on 08 Oct 2022

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