mwapi

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: MIT Imports: 8 Imported by: 0

README

Merriam Webster API

PkgGoDev

Golang-based API interface for querying https://dictionaryapi.com/

Documentation

Index

Constants

View Source
const Version = "0.0.2"

Version of mwapi, accessible programmatically

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseURLs

type BaseURLs struct {
	Collegiate string
}

BaseURLs is a configuration struct for passing in custom base URLs

type Client

type Client interface {
	SetDebugf(func(string, ...interface{}) (int, error))
	SearchCollegiate(word string) ([]types.CollegiateResult, []string, error)
}

Client describes access to the Merriam-Webster dictionary at dictionaryapi.com

func NewClient

func NewClient(apiKey string, userAgent string, baseURLs *BaseURLs) Client

NewClient creates a client based on a given API key

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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