wordz

package
v0.0.0-...-6af0e71 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

*

  • @license
  • Copyright Google Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • https://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SearchWord

func SearchWord(word string)

SearchWord will list the labels used in gmail account

Types

type Entries

type Entries struct {
	Etymologies []string `json:"etymologies"`
	Senses      []Senses `json:"senses"`
}

Entries is JSON the response

type Examples

type Examples struct {
	Text string `json:"text"`
}

Examples is JSON the response

type LexicalCategory

type LexicalCategory struct {
	ID   string `json:"id"`
	Text string `json:"text"`
}

LexicalCategory is JSON the response

type LexicalEntries

type LexicalEntries struct {
	Entries         []Entries        `json:"entries"`
	Language        string           `json:"language"`
	LexicalCategory LexicalCategory  `json:"lexicalCategory"`
	Pronunciations  []Pronunciations `json:"pronunciations"`
	Text            string           `json:"text"`
}

LexicalEntries is JSON the response

type Metadata

type Metadata struct {
	Operation string `json:"operation"`
	Provider  string `json:"provider"`
	Schema    string `json:"schema"`
}

Metadata is JSON the response

type OxfordDictionariesAPIResponse

type OxfordDictionariesAPIResponse struct {
	ID       string    `json:"id"`
	Metadata Metadata  `json:"metadata"`
	Results  []Results `json:"results"`
	Word     string    `json:"word"`
}

OxfordDictionariesAPIResponse is JSON the response

type Pronunciations

type Pronunciations struct {
	AudioFile        string   `json:"audioFile"`
	Dialects         []string `json:"dialects"`
	PhoneticNotation string   `json:"phoneticNotation"`
	PhoneticSpelling string   `json:"phoneticSpelling"`
}

Pronunciations is JSON the response

type Results

type Results struct {
	ID             string           `json:"id"`
	Language       string           `json:"language"`
	LexicalEntries []LexicalEntries `json:"lexicalEntries"`
	Type           string           `json:"type"`
	Word           string           `json:"word"`
}

Results is JSON the response

type Senses

type Senses struct {
	ID               string           `json:"id"`
	Definitions      []string         `json:"definitions"`
	Examples         []Examples       `json:"examples"`
	ShortDefinitions []string         `json:"shortDefinitions"`
	ThesaurusLinks   []ThesaurusLinks `json:"thesaurusLinks"`
}

Senses is JSON the response

type ThesaurusLinks struct {
	EntryID string `json:"entry_id"`
	SenseID string `json:"sense_id"`
}

ThesaurusLinks is JSON the response

Jump to

Keyboard shortcuts

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