gorae

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: BSD-2-Clause Imports: 8 Imported by: 0

README

gorae

API to use DRAE (Diccionario de la Real Academia Española) in Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryWordJSON

func QueryWordJSON(word string, minifyJSON ...bool) (string, error)

Types

type WordDefinition

type WordDefinition struct {
	Word    string                 `json:"word"`
	Entries []*WordDefinitionEntry `json:"entries"`
}

func QueryWord

func QueryWord(word string) (*WordDefinition, error)

type WordDefinitionEntry

type WordDefinitionEntry struct {
	Num        int    `json:"num"`
	Types      string `json:"type"`
	Definition string `json:"definition"`
	Examples   string `json:"examples"`
}

Directories

Path Synopsis
cmd
api

Jump to

Keyboard shortcuts

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