suggest

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

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SuggestAPI

type SuggestAPI struct {
	// contains filtered or unexported fields
}

func NewSuggestAPI

func NewSuggestAPI(apiKey string) *SuggestAPI

func (*SuggestAPI) Search

func (f *SuggestAPI) Search(body []byte) (*SuggestionBody, error)

type Suggestion

type Suggestion struct {
	Thing struct {
		ID        string   `json:"id"`
		PrefLabel string   `json:"prefLabel"`
		Types     []string `json:"types"`
	} `json:"thing"`
	Provenances []struct {
		Scores []struct {
			ScoringSystem string  `json:"scoringSystem"`
			Value         float64 `json:"value"`
		} `json:"scores"`
	} `json:"provenances"`
}

type SuggestionBody

type SuggestionBody struct {
	Suggestions []Suggestion `json:"suggestions"`
}

Jump to

Keyboard shortcuts

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