urbandictionary

package module
v0.0.0-...-3b38cbf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2015 License: MIT Imports: 5 Imported by: 9

README

urbandictionary

Urban Dictionnary API wrapper in golang

Documentation

Index

Constants

View Source
const API_URL = "http://api.urbandictionary.com/v0/define?term="

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Author     string
	Word       string
	Definition string
	Example    string
	Permalink  string
	Upvote     int `json:"thumbs_up"`
	Downvote   int `json:"thumbs_down"`
}

type SearchResult

type SearchResult struct {
	Type    string `json:"result_type"`
	Tags    []string
	Results []Result `json:"list"`
	Sounds  []string
}

func Query

func Query(searchTerm string) (*SearchResult, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL