Documentation
¶
Index ¶
Constants ¶
View Source
const AnyLanguage uint = 99
View Source
const Danish uint = 2
View Source
const Dutch uint = 10
View Source
const English uint = 1
preferred language
View Source
const Finish uint = 5
View Source
const French uint = 6
View Source
const German uint = 3
View Source
const Italian uint = 8
View Source
const Norwegian uint = 11
View Source
const Polish uint = 12
View Source
const Portuguese uint = 13
View Source
const Spanish uint = 4
View Source
const Swedish uint = 15
Variables ¶
This section is empty.
Functions ¶
func SetToken ¶
SetToken initialises the API with the token, you can apply for at https://www.ean-search.org/ean-database-api.html
Types ¶
type Product ¶
type Product struct {
Ean string
Name string
CategoryID uint `json:",string"`
CategoryName string
IssuingCountry string
}
Product holds datasets returned by the API
func BarcodeLookup ¶
BarcodeLookup searches for a single EAN code
func BarcodePrefixSearch ¶
BarcodePrefixSearch find all EANs strating with a certain prefix
Click to show internal directories.
Click to hide internal directories.