urbandictionary

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package urbandictionary implements Urban Dictionary definition of words using their JSON API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition struct {
	Word       string `json:"word"`
	Definition string `json:"definition"`
}

A Definition represents an Urban Dictionary definition.

func (*Definition) String

func (d *Definition) String() string

type Result

type Result struct {
	List []Definition `json:"list"`
}

A Result represents an Urban Dictionary search result.

func Define

func Define(term string) (*Result, error)

Define gets definition of term on Urban Dictionary and populates a Result.

func (*Result) String

func (r *Result) String() string

Directories

Path Synopsis
Urban Dictionary client.
Urban Dictionary client.

Jump to

Keyboard shortcuts

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