šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

github.com/jacobmintzer/shakespeare-autocomplete

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/jacobmintzer/shakespeare-autocomplete

v0.0.0-20200709003646-9442cd9581bc
Source
Go
Version published
Created
Source

Shakespeare Autocomplete

Coding Interview for Zesty.io

Installation/Setup

  • Build project with go build server.go.
  • Run server with ./server.exe on Windows or ./server on a Unix environment.
  • Server runs on port 9000.
  • Service can be accessed with `curl --location --request GET 'http://localhost:9000/autocomplete?term=' with replaced with whatever term you want to search for.

Other information

  • Pre-specified results can be found in results.txt.

Known limitations:

  • Words separated by punctuation and no spaces are considered a single word
  • With a larger word bank, rerunning populateDictionary could become time consuming, so there could be a separate service that just generates the word list in usage-order, and it wouldn't have to repopulate that data.
  • Wrong endpoints aren't properly handled.

FAQs

Package last updated on 09 Jul 2020

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