Documentation
¶
Index ¶
Examples ¶
Constants ¶
View Source
const ( // EndpointURL is a base API endpoint. EndpointURL = "https://dadata.ru/api/v2/" // EndpointURLSuggest is a suggestion API endpoint. EndpointURLSuggest = "https://suggestions.dadata.ru/suggestions/api/4_1/rs/" )
Variables ¶
This section is empty.
Functions ¶
func NewCleanApi ¶
NewCleanApi provides "clean" API.
func NewProfileApi ¶
NewProfileApi provides profile related API.
func NewStatApi ¶
NewStatApi provides statistic API.
func NewSuggestApi ¶
NewSuggestApi provides suggestion API.
Example ¶
api := NewSuggestApi() params := suggest.RequestParams{ Query: "ул Свободы", } suggestions, err := api.Address(context.Background(), ¶ms) if err != nil { return } for _, s := range suggestions { fmt.Printf("%s", s.Value) }
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.