Skip to content

Urban Dictionary definition lookup service written in Go

License

Notifications You must be signed in to change notification settings

dgarlitt/urban-gopher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status Go Report Card

Urban Gopher Logo

Urban Dictionary Definition Lookup Service

This is a simple service that will look-up the "best" definition for a given term in Urban Dictionary using the Mashape API. You will need to provide a Mashape API Key to make a request from this service.

A Mashape API key can be provided as an environment variable:

export URBAN_GOPHER_API_KEY=<your-mashape-api-key>

Then you can startup the service and hit the endpoint as follows:

curl http://localhost:8008/definition?term=wat

Alternatively, you can provide the API key as a header when making a request:

Example request:

curl -H "X-API-Key: <your-mashape-api-key>" http://localhost:8008/definition?term=wat

Mashape API keys will not be logged in the log output.

Install and Run

go get github.com/dgarlitt/urban-gopher
cd $GOPATH/src/github.com/dgarlitt/urban-gopher
go build -v -race -o ci/artifacts/urban-gopher
ci/artifacts/urban-gopher

About

Urban Dictionary definition lookup service written in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published