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"`
}
Click to show internal directories.
Click to hide internal directories.