Documentation ¶
Overview ¶
Package amiibo is an unofficial SDK for the Go programming language for interfacing with the Nintendo Amiibo catalogue.
Index ¶
- Constants
- func WriteENGAmiibo(dir string, filename string, v *ENGAmiibo) (fullpath string, err error)
- func WriteENGAmiiboMap(dir string, filename string, v *ENGAmiiboMap) (fullpath string, err error)
- func WriteENGChart(dir string, filename string, v *ENGChart) (fullpath string, err error)
- func WriteENGChartAmiibo(dir string, filename string, v *ENGChartAmiibo) (fullpath string, err error)
- func WriteENGChartGame(dir string, filename string, v *ENGChartGame) (fullpath string, err error)
- func WriteENGChartItem(dir string, filename string, v *ENGChartItem) (fullpath string, err error)
- func WriteENGGame(dir string, filename string, v *ENGGame) (fullpath string, err error)
- func WriteENGGameMap(dir string, filename string, v *ENGGameMap) (fullpath string, err error)
- func WriteENGLineup(dir string, filename string, v ENGLineup) (fullpath string, err error)
- func WriteENGLineupAmiibo(dir string, filename string, v *ENGLineupAmiibo) (fullpath string, err error)
- func WriteENGLineupItem(dir string, filename string, v *ENGLineupItem) (fullpath string, err error)
- func WriteJPNAmiibo(dir string, filename string, v *JPNAmiibo) (fullpath string, err error)
- func WriteJPNAmiiboMap(dir string, filename string, v *JPNAmiiboMap) (fullpath string, err error)
- func WriteJPNAmiiboSoftware(dir string, filename string, v *JPNAmiiboSoftware) (fullpath string, err error)
- func WriteJPNChart(dir string, filename string, v *JPNChart) (fullpath string, err error)
- func WriteJPNChartItem(dir string, filename string, v *JPNChartItem) (fullpath string, err error)
- func WriteJPNChartSoftware(dir string, filename string, v *JPNChartSoftware) (fullpath string, err error)
- func WriteJPNChartSoftwareItem(dir string, filename string, v *JPNChartSoftwareItem) (fullpath string, err error)
- func WriteJPNLineup(dir string, filename string, v *JPNLineup) (fullpath string, err error)
- func WriteJPNLineupComing(dir string, filename string, v *JPNLineupComing) (fullpath string, err error)
- func WriteJPNLineupComingItem(dir string, filename string, v *JPNLineupComingItem) (fullpath string, err error)
- func WriteJPNLineupItem(dir string, filename string, v *JPNLineupItem) (fullpath string, err error)
- func WriteJPNLineupSeriesItem(dir string, filename string, v *JPNLineupSeriesItem) (fullpath string, err error)
- func WriteJPNSoftware(dir string, filename string, v *JPNSoftware) (fullpath string, err error)
- func WriteJPNSoftwareMap(dir string, filename string, v *JPNSoftwareMap) (fullpath string, err error)
- type Amiibo
- type ENGAmiibo
- func (e *ENGAmiibo) AddENGChartAmiibo(v *ENGChartAmiibo) (err error)
- func (e *ENGAmiibo) AddENGLineupAmiibo(v *ENGLineupAmiibo) (err error)
- func (e *ENGAmiibo) AddENGLineupItem(v *ENGLineupItem) (err error)
- func (e ENGAmiibo) GetAvailable() bool
- func (e ENGAmiibo) GetID() string
- func (e ENGAmiibo) GetLanguage() language.Tag
- func (e ENGAmiibo) GetMD5() (MD5 string, err error)
- func (e ENGAmiibo) GetName() string
- func (e ENGAmiibo) GetNameAlternative() string
- func (e ENGAmiibo) GetPrice() string
- func (e ENGAmiibo) GetReleaseDate() time.Time
- func (e ENGAmiibo) GetSeries() string
- func (e ENGAmiibo) GetURL() string
- type ENGAmiiboMap
- type ENGChart
- type ENGChartAmiibo
- type ENGChartGame
- type ENGChartItem
- type ENGGame
- func (e *ENGGame) AddENGChartGame(v *ENGChartGame) (err error)
- func (e *ENGGame) AddENGChartItem(v *ENGChartItem) (err error)
- func (e ENGGame) GetAvailable() bool
- func (e ENGGame) GetID() string
- func (e ENGGame) GetLanguage() language.Tag
- func (e ENGGame) GetMD5() (MD5 string, err error)
- func (e ENGGame) GetName() string
- func (e ENGGame) GetNameAlternative() string
- func (e ENGGame) GetReleaseDate() time.Time
- func (e ENGGame) GetURL() string
- type ENGGameMap
- type ENGLineup
- type ENGLineupAmiibo
- type ENGLineupItem
- type JPNAmiibo
- func (j *JPNAmiibo) AddJPNChartItem(v *JPNChartItem) (err error)
- func (j *JPNAmiibo) AddJPNLineupItem(v *JPNLineupItem) (err error)
- func (j JPNAmiibo) GetAvailable() bool
- func (j JPNAmiibo) GetID() string
- func (j JPNAmiibo) GetLanguage() language.Tag
- func (j JPNAmiibo) GetMD5() (MD5 string, err error)
- func (j JPNAmiibo) GetName() string
- func (j JPNAmiibo) GetNameAlternative() string
- func (j JPNAmiibo) GetPrice() string
- func (j JPNAmiibo) GetReleaseDate() time.Time
- func (j JPNAmiibo) GetSeries() string
- func (j JPNAmiibo) GetURL() string
- type JPNAmiiboMap
- type JPNAmiiboSoftware
- type JPNAmiiboSoftwareMap
- type JPNChart
- type JPNChartItem
- type JPNChartItemSoftware
- type JPNChartSoftware
- type JPNChartSoftwareItem
- type JPNLineup
- type JPNLineupComing
- type JPNLineupComingItem
- type JPNLineupItem
- type JPNLineupSeriesItem
- type JPNSoftware
- func (j *JPNSoftware) AddJPNChartSoftwareItem(v *JPNChartSoftwareItem) (err error)
- func (j JPNSoftware) GetAvailable() bool
- func (j JPNSoftware) GetID() string
- func (j JPNSoftware) GetLanguage() language.Tag
- func (j JPNSoftware) GetMD5() (MD5 string, err error)
- func (j JPNSoftware) GetName() string
- func (j JPNSoftware) GetNameAlternative() string
- func (j JPNSoftware) GetReleaseDate() time.Time
- func (j JPNSoftware) GetURL() string
- type JPNSoftwareMap
- type Software
Constants ¶
const ENGChartURL string = "" /* 126-byte string literal not displayed */
ENGChartURL is the URL for the Nintendo of America Nintendo Amiibo compatibility chart.
const ENGLineupURL string = "https://www.nintendo.com/content/noa/en_US/amiibo/line-up/jcr:content/root/responsivegrid/lineup.model.json"
ENGLineupURL is the URL to the Nintendo of America Nintendo Amiibo lineup information.
const JPNChartSoftwareURL string = "https://www.nintendo.co.jp/hardware/amiibo/chart/data/software.xml"
JPNChartSoftwareURL is the URL for the Nintendo Japan Nintendo Amiibo software chart.
const JPNChartURL string = "https://www.nintendo.co.jp/hardware/amiibo/chart/data/chart.xml"
JPNChartURL is the URL for the Nintendo Japan Nintendo Amiibo compatibility chart.
const JPNLineupComingURL string = "https://www.nintendo.co.jp/data/software/xml-system/amiibo-lineup-coming.xml"
JPNLineupComingURL is the URL for the Nintendo Japan Nintendo Amiibo lineup coming chart.
const JPNLineupURL string = "https://www.nintendo.co.jp/hardware/amiibo/chart/data/lineup.xml"
JPNLineupURL is the URL for the Nintendo Japan Nintendo Amiibo lineup chart.
Variables ¶
This section is empty.
Functions ¶
func WriteENGAmiibo ¶
WriteENGAmiibo writes a ENGAmiibo to disc.
func WriteENGAmiiboMap ¶
func WriteENGAmiiboMap(dir string, filename string, v *ENGAmiiboMap) (fullpath string, err error)
WriteENGAmiiboMap writes a ENGAmiiboMap to disc.
func WriteENGChart ¶
WriteENGChart writes a ENGChart to disc.
func WriteENGChartAmiibo ¶
func WriteENGChartAmiibo(dir string, filename string, v *ENGChartAmiibo) (fullpath string, err error)
WriteENGChartAmiibo writes a ENGChartAmiibo to disc.
func WriteENGChartGame ¶
func WriteENGChartGame(dir string, filename string, v *ENGChartGame) (fullpath string, err error)
WriteENGChartGame writes a ENGChartGame to disc.
func WriteENGChartItem ¶
func WriteENGChartItem(dir string, filename string, v *ENGChartItem) (fullpath string, err error)
WriteENGChartItem writes a ENGChartItem to disc.
func WriteENGGame ¶
WriteENGGame writes a ENGGame to disc.
func WriteENGGameMap ¶
func WriteENGGameMap(dir string, filename string, v *ENGGameMap) (fullpath string, err error)
WriteENGGameMap writes a ENGGameMap to disc.
func WriteENGLineup ¶
WriteENGLineup writes a ENGLineup to disc.
func WriteENGLineupAmiibo ¶
func WriteENGLineupAmiibo(dir string, filename string, v *ENGLineupAmiibo) (fullpath string, err error)
WriteENGLineupAmiibo writes a ENGLineupAmiibo to disc.
func WriteENGLineupItem ¶
func WriteENGLineupItem(dir string, filename string, v *ENGLineupItem) (fullpath string, err error)
WriteENGLineupItem writes a ENGLineupItem to disc.
func WriteJPNAmiibo ¶
WriteJPNAmiibo writes a JPNAmiibo to disc.
func WriteJPNAmiiboMap ¶
func WriteJPNAmiiboMap(dir string, filename string, v *JPNAmiiboMap) (fullpath string, err error)
WriteJPNAmiiboMap writes a JPNAmiiboMap to disc.
func WriteJPNAmiiboSoftware ¶
func WriteJPNAmiiboSoftware(dir string, filename string, v *JPNAmiiboSoftware) (fullpath string, err error)
WriteJPNAmiiboSoftware writes a JPNAmiiboSoftware to disc.
func WriteJPNChart ¶
WriteJPNChart writes a JPNChart to disc.
func WriteJPNChartItem ¶
func WriteJPNChartItem(dir string, filename string, v *JPNChartItem) (fullpath string, err error)
WriteJPNChartItem writes a JPNChartItem to disc.
func WriteJPNChartSoftware ¶
func WriteJPNChartSoftware(dir string, filename string, v *JPNChartSoftware) (fullpath string, err error)
WriteJPNChartSoftware writes a JPNChartSoftware to disc.
func WriteJPNChartSoftwareItem ¶
func WriteJPNChartSoftwareItem(dir string, filename string, v *JPNChartSoftwareItem) (fullpath string, err error)
WriteJPNChartSoftwareItem writes a JPNChartSoftwareItem to disc.
func WriteJPNLineup ¶
WriteJPNLineup writes a JPNLineup to disc.
func WriteJPNLineupComing ¶
func WriteJPNLineupComing(dir string, filename string, v *JPNLineupComing) (fullpath string, err error)
WriteJPNLineupComing writes a JPNLineupComing to disc.
func WriteJPNLineupComingItem ¶
func WriteJPNLineupComingItem(dir string, filename string, v *JPNLineupComingItem) (fullpath string, err error)
WriteJPNLineupComingItem writes a JPNLineupComingItem to disc.
func WriteJPNLineupItem ¶
func WriteJPNLineupItem(dir string, filename string, v *JPNLineupItem) (fullpath string, err error)
WriteJPNLineupItem writes a JPNLineupItem to disc.
func WriteJPNLineupSeriesItem ¶
func WriteJPNLineupSeriesItem(dir string, filename string, v *JPNLineupSeriesItem) (fullpath string, err error)
WriteJPNLineupSeriesItem writes a JPNLineupSeriesItem to disc.
func WriteJPNSoftware ¶
func WriteJPNSoftware(dir string, filename string, v *JPNSoftware) (fullpath string, err error)
WriteJPNSoftware writes a JPNSoftware to disc.
func WriteJPNSoftwareMap ¶
func WriteJPNSoftwareMap(dir string, filename string, v *JPNSoftwareMap) (fullpath string, err error)
WriteJPNSoftwareMap writes a JPNSoftwareMap to disc.
Types ¶
type Amiibo ¶
type Amiibo interface { GetAvailable() bool GetID() string GetLanguage() language.Tag GetMD5() (string, error) GetName() string GetNameAlternative() string GetPrice() string GetReleaseDate() time.Time GetSeries() string GetURL() string }
Amiibo is a generic interface for a Nintendo Amiibo product.
Amiibo provides a handler to get all common fields between the ENGAmiibo and JPNAmiibo.
type ENGAmiibo ¶
type ENGAmiibo struct { // Affiliation is the series of Nintendo Amiibo products the item is associated with. Affiliation string `json:"affiliation"` // Available is the Nintendo Amiibo availability status. Availiable bool `json:"availiable"` // BoxImageURL is the direct URL to the Nintendo Amiibo product box. BoxImageURL string `json:"box_image_url"` // Description is the verbose description for the Nintendo Amiibo product. Description string `json:"description"` // DescriptionAlternative is the alternative description for the Nintendo Amiibo product. DescriptionAlternative string `json:"description_alternative"` // Path is the relative path to the Nintendo Amiibo product details. DetailsPath string `json:"details_path"` // DetailsURL is the direct URL to the Nintendo Amiibo product page. DetailsURL string `json:"details_url"` // Epoch is the release date for the Nintendo Amiibo product in seconds. Epoch int64 `json:"epoch"` // FigureImageURL is the direct URL to the Nintendo Amiibo figurine image. FigureImageURL string `json:"figure_image_url"` // Franchise is the name of the series the Nintendo Amiibo product is affiliated with. Franchise string `json:"franchise"` // GameID is the ID associated with the Nintendo software the Nintendo Amiibo product is associated with. GameID string `json:"game_id"` // Hex is the hexidecimal code associated with the Nintendo Amiibo product. Hex string `json:"hex"` // ID is the fully qualified ID for the Nintendo Amiibo product given by Nintendo of America. ID string `json:"id"` // LastModified is the formatted timestamp when the dataset was modified by Nintendo of America. LastModified time.Time `json:"last_modified"` // Name is the official name of the Nintendo Amiibo product. // // Name can contain unicode. Name string `json:"name"` // NameAlternative is the alternative name given to the Nintendo Amiibo product. // // NameAlternative can contain unicode. NameAlternative string `json:"name_alternative"` // Path is the relative path to the Nintendo Amiibo product details. Path string `json:"path"` // Price is the price of the Nintendo Amiibo product in USD. // // Price can be empty. Price string `json:"price"` // Producer is the company affiliation of the Nintendo Amiibo product. Producer string `json:"producer"` // Product is the product classification of the Nintendo Amiibo item. Product string `json:"product"` // ProductAlternative is the alternative classification for the Nintendo Amiibo product. ProductAlternative string `json:"product_alternative"` // ProductImageURL is the direct URL to the Nintendo Amiibo product image. ProductImageURL string `json:"product_image_url"` // ProductPage is the relative nintendo.com URL to the Nintendo Amiibo product page. ProductPage string `json:"product_page"` // ReleaseDate is the formatted timestamp of the Nintendo Amiibo products release date. ReleaseDate time.Time `json:"release_date"` // Series is the defined series of products that the Nintendo Amiibo product is group or affiliated with. Series string `json:"series"` // Title is the title for the Nintendo Amiibo product. Title string `json:"title"` // TitleAternative is the alternative title for the Nintendo Amiibo product. // // TitleAlternative can contain unicode. TitleAlternative string `json:"title_alternative"` // UPC is the universal product code for the Nintendo Amiibo product. UPC string `json:"upc"` // URL is the direct URL to the Nintendo Amiibo product page. URL string `json:"url"` // UUID is the UUID for the product given by Nintendo. UUID uuid.UUID `json:"uuid"` }
ENGAmiibo is a formatted ENGChartAmiibo, ENGLineupAmiibo and ENGLineupItem.
func NewENGAmiibo ¶
func NewENGAmiibo(ENGChartAmiibo *ENGChartAmiibo, ENGLineupAmiibo *ENGLineupAmiibo, ENGLineupItem *ENGLineupItem) (v ENGAmiibo, err error)
NewENGAmiibo returns a ENGAmiibo.
func ReadENGAmiibo ¶
ReadENGAmiibo reads a ENGAmiibo from disc.
func (*ENGAmiibo) AddENGChartAmiibo ¶
func (e *ENGAmiibo) AddENGChartAmiibo(v *ENGChartAmiibo) (err error)
AddENGChartAmiibo adds the contents of a ENGChartAmiibo to the ENGAmiibo.
func (*ENGAmiibo) AddENGLineupAmiibo ¶
func (e *ENGAmiibo) AddENGLineupAmiibo(v *ENGLineupAmiibo) (err error)
AddENGLineupAmiibo adds the contents of a ENGLineupAmiibo to the ENGAmiibo.
func (*ENGAmiibo) AddENGLineupItem ¶
func (e *ENGAmiibo) AddENGLineupItem(v *ENGLineupItem) (err error)
AddENGLineupItem adds the contents of a ENGLineupItem to the ENGAmiibo.
func (ENGAmiibo) GetAvailable ¶
GetAvailable returns the ENGAmiibo availability.
func (ENGAmiibo) GetLanguage ¶
GetLanguage returns the ENGAmiibo language.
func (ENGAmiibo) GetNameAlternative ¶
GetNameAlternative returns the ENGAmiibo name alternative.
func (ENGAmiibo) GetReleaseDate ¶
GetReleaseDate returns the ENGAmiibo release date.
type ENGAmiiboMap ¶
ENGAmiiboMap is map of ENGAmiibo.
func NewENGAmiiboMap ¶
func NewENGAmiiboMap(ENGChart ENGChart, ENGLineup ENGLineup) (v ENGAmiiboMap, err error)
NewENGAmiiboMap returns a ENGAmiiboMap.
func ReadENGAmiiboMap ¶
func ReadENGAmiiboMap(dir string, filename string) (v ENGAmiiboMap, err error)
ReadENGAmiiboMap reads a ENGAmiiboMap from disc.
func (*ENGAmiiboMap) Add ¶
func (e *ENGAmiiboMap) Add(v *ENGAmiibo)
Add adds a ENGAmiibo to the ENGAmiiboMap.
type ENGChart ¶
type ENGChart struct { // AmiiboList is a collection of Nintendo Amiibo product information. AmiiboList []ENGChartAmiibo `json:"amiiboList"` // GameList is a collection of Nintendo Amiibo supported games. GameList []ENGChartGame `json:"gameList"` // Items is a collection of additional Nintendo Amiibo product information. Items []ENGChartItem `json:"items"` }
ENGChart is the unfettered English language Nintendo Amiibo product and game support information.
ENGChart is provided by Nintendo of America.
func GetENGChart ¶
GetENGChart gets the ENGChart from nintendo.com.
type ENGChartAmiibo ¶
type ENGChartAmiibo struct { // ID is the Nintendo Amiibo UUID. ID string `json:"id"` // Image is the relative path to the Nintendo Amiibo product image. Image string `json:"image"` // IsRelatedTo is the series or brand the Nintendo Amiibo product is related to. IsRelatedTo string `json:"isRelatedTo"` // IsReleased is the availability status of the Nintendo Amiibo product. IsReleased string `json:"isReleased"` // Name is the unformatted name of the Nintendo Amiibo product. Name string `json:"name"` // ReleaseDateMask is the YYYY-MM-DD timestamp when the Nintendo Amiibo product is or will be released. ReleaseDateMask string `json:"releaseDateMask"` // TagID is the ID assigned by Nintendo. TagID string `json:"tagid"` // Type is the Nintendo Amiibo product type. Type string `json:"type"` // URL is the relative path to the Nintendo Amiibo product page. URL string `json:"url"` }
ENGChartAmiibo is the unfettered English language Nintendo Amiibo product information.
func ReadENGChartAmiibo ¶
func ReadENGChartAmiibo(dir string, filename string) (v ENGChartAmiibo, err error)
ReadENGChartAmiibo reads a ENGChartAmiibo from disc.
func (ENGChartAmiibo) GetID ¶
func (e ENGChartAmiibo) GetID() string
GetID returns a ID for the ENGChartAmiibo.
type ENGChartGame ¶
type ENGChartGame struct { // ID is the Nintendo game UUID. ID string `json:"id"` // Image is the relative path to the Nintendo game product image. Image string `json:"image"` // IsReleased is the availability status of the Nintendo game product. IsReleased string `json:"isReleased"` // Name is the unformatted name of the Nintendo game. Name string `json:"name"` // Path is the relative path to the Nintendo game product page. Path string `json:"path"` // ReleaseDateMask is the YYYY-MM-DD timestamp when the Nintendo game is or will be released. ReleaseDateMask string `json:"releaseDateMask"` // Type is the Nintendo product type. Type string `json:"type"` // URL is the relative path to the game page that supports a Nintendo Amiibo product. URL string `json:"url"` }
ENGChartGame is the unfettered English language Nintendo Amiibo supported game information.
func ReadENGChartGame ¶
func ReadENGChartGame(dir string, filename string) (v ENGChartGame, err error)
ReadENGChartGame reads a ENGChartGame from disc.
func (ENGChartGame) GetID ¶
func (e ENGChartGame) GetID() string
GetID returns the ID for ENGChartGame.
type ENGChartItem ¶
type ENGChartItem struct { // Description is the Nintendo Amiibo item product description. Description string `json:"description"` // LastModified is the Nintendo Amiibo item product release date in milliseconds. LastModified int64 `json:"lastModified"` // Path is the relative path to the Nintendo Amiibo item product page. Path string `json:"path"` // Title is the unformatted name of the Nintendo Amiibo item product. Title string `json:"title"` // URL is the relative path to the Nintendo Amiibo item page. URL string `json:"url"` }
ENGChartItem is the unfettered English language Nintendo Amiibo additional product information.
func ReadENGChartItem ¶
func ReadENGChartItem(dir string, filename string) (v ENGChartItem, err error)
ReadENGChartItem reads a ENGChartItem from disc.
func (ENGChartItem) GetID ¶
func (e ENGChartItem) GetID() string
GetID returns a ID for the ENGChartItem.
type ENGGame ¶
type ENGGame struct { // Available is the Nintendo game availability status. Available bool `json:"available"` // Description is the verbose description for the Nintendo game product. Description string `json:"description"` // LastModified is the formatted timestamp when the dataset was modified by Nintendo of America. LastModified time.Time `json:"last_modified"` // Name is the official name of the Nintendo game product. // // Name can contain unicode. Name string `json:"name"` // Path is the relative path to the Nintendo game product details. Path string `json:"path"` // Product is the product classification of the Nintendo software item. Product string `json:"product"` // ProductImageURL is the direct URL to the Nintendo software product image. ProductImageURL string `json:"product_image_url"` // ReleaseDate is the formatted timestamp of the Nintendo software release date. ReleaseDate time.Time `json:"release_date"` // Title is the title for the Nintendo Amiibo product. Title string `json:"title"` // URL is the direct URL to the Nintendo Amiibo software page. URL string `json:"url"` // UUID is the UUID for the product given by Nintendo. UUID uuid.UUID `json:"uuid"` }
ENGGame is a formatted ENGChartGame and ENGChartItem.
func NewENGGame ¶
func NewENGGame(ENGChartGame *ENGChartGame, ENGChartItem *ENGChartItem) (v ENGGame, err error)
NewENGGame returns a ENGGame.
func ReadENGGame ¶
ReadENGGame reads a ENGGame from disc.
func (*ENGGame) AddENGChartGame ¶
func (e *ENGGame) AddENGChartGame(v *ENGChartGame) (err error)
AddENGChartGame adds the contents of a ENGChartGame to the ENGGame.
func (*ENGGame) AddENGChartItem ¶
func (e *ENGGame) AddENGChartItem(v *ENGChartItem) (err error)
AddENGChartItem adds the contents of a ENGChartItem to the ENGGame.
func (ENGGame) GetAvailable ¶
GetAvailable returns the ENGGame availability.
func (ENGGame) GetLanguage ¶
GetLanguage returns the ENGGame language.
func (ENGGame) GetNameAlternative ¶
GetNameAlternative returns the ENGGame name alternative.
func (ENGGame) GetReleaseDate ¶
GetReleaseDate returns the ENGGame release date.
type ENGGameMap ¶
ENGGameMap is map of ENGGame.
func NewENGGameMap ¶
func NewENGGameMap(ENGChart *ENGChart) (v ENGGameMap, err error)
NewENGGameMap returns a ENGGameMap.
func ReadENGGameMap ¶
func ReadENGGameMap(dir string, filename string) (v ENGGameMap, err error)
ReadENGGameMap reads a ENGGameMap from disc.
type ENGLineup ¶
type ENGLineup struct { // AmiiboList is a collection of Nintendo Amiibo products containing their product information. AmiiboList []ENGLineupAmiibo `json:"amiiboList"` // ComponentPath is the relative path to the Nintendo resource file. ComponentPath string `json:"componentPath"` // Items is a collection of metadata related to Nintendo Amiibo products. Items []ENGLineupItem `json:"items"` }
ENGLineup is the unfettered Nintendo Amiibo lineup information provided by nintendo.com.
ENGLineup contains the product information for the Nintendo Amiibo product as well as some related metadata.
ENGLineup is provided by Nintendo of America.
func GetENGLineup ¶
GetENGLineup gets the http.Response from nintendo.com for the lineup Nintendo Amiibo JSON.
type ENGLineupAmiibo ¶
type ENGLineupAmiibo struct { // AmiiboName is the name of the Nintendo Amiibo product. // // AmiiboName can contain special characters that require filtering. AmiiboName string `json:"amiiboName"` // AmiiboPage is the relative URL to the Nintendo Amiibo product details page. // // AmiiboPage requires nintendo.com to be prepended to the AmiiboPage. AmiiboPage string `json:"amiiboPage"` // BoxArtURL is the relative URL to the Nintendo Amiibo box image page. // // BoxArtURL requires nintendo.com to be prepended to the URL. BoxArtURL string `json:"boxArtUrl"` // DetailsPath is the relative path to the Nintendo Amiibo product information page. DetailsPath string `json:"detailsPath"` // DetailsURL is the relative URL to the Nintendo Amiibo product information page. // // DetailsURL requires nintendo.com to be prepended to the URL. DetailsURL string `json:"detailsUrl"` // FigureURL is the relative URL to the Nintendo Amiibo product image. // // FigureURL requires nintendo.com to be prepended to the FigureURL. FigureURL string `json:"figureUrl"` // Franchise is the Nintendo or third-party product the Nintendo Amiibo product is affiliated with. // // Franchise is often null. Franchise string `json:"franchise"` // GameCode is the ID for the Nintendo game that the Nintendo Amiibo product is affiliated with. GameCode string `json:"gameCode"` // HexCode is the hexidecimal code for the Nintendo Amiibo product. HexCode string `json:"hexCode"` // OverviewDescription is the verbose Nintendo Amiibo product summary. // // OverviewDescription contains HTML tags and requires filtering. OverviewDescription string `json:"overviewDescription"` // Price is the price of the Nintendo Amiibo product in USD. // // Price need to be converted to a float. Price string `json:"price"` // PresentedBy is the namespace of the affiliated partner for the Nintendo Amiibo product. PresentedBy string `json:"presentedBy"` // ReleaseDateMask is the DD-MM-YYYY timestamp for the Nintendo Amiibo product release date. ReleaseDateMask string `json:"releaseDateMask"` // Series is the Nintendo product series the Nintendo Amiibo product is affiliated with. Series string `json:"series"` // Slug is the formatted namespace of the Nintendo Amiibo product. Slug string `json:"slug"` // Type is the Nintendo Amiibo product classification type. Type string `json:"type"` // UnixTimestamp is the Nintendo Amiibo product release date in milliseconds. UnixTimestamp int64 `json:"unixTimestamp"` // UPC is the universal product code for the Nintendo Amiibo product. UPC string `json:"upc"` }
ENGLineupAmiibo is the unfettered Nintendo Amiibo product information from nintendo.com.
ENGLineupAmiibo contains the English language product information for a specific Nintendo Amiibo.
func ReadENGLineupAmiibo ¶
func ReadENGLineupAmiibo(dir string, filename string) (v ENGLineupAmiibo, err error)
ReadENGLineupAmiibo reads a ENGLineupAmiibo from disc.
func (ENGLineupAmiibo) GetID ¶
func (e ENGLineupAmiibo) GetID() string
GetID returns the ENGLineupAmiibo ID.
type ENGLineupItem ¶
type ENGLineupItem struct { // Description is the verbose Nintendo Amiibo product summary. // // Description is often a null field. Description string `json:"description"` // LastModified is the Nintendo Amiibo product release date in milliseconds. LastModified int64 `json:"lastModified"` // Path is the relative path to the Nintendo Amiibo product information page according to the nintendo.com CDN. Path string `json:"path"` // Title is the name of the Nintendo Amiibo product. // // Title can contain special characters that require filtering. Title string `json:"title"` // URL is the relative path URL to the Nintendo Amiibo product information page. // // URL requires nintendo.com to be prepended to the URL. URL string `json:"url"` }
ENGLineupItem is the unfettered Nintendo Amiibo product additional information from nintendo.com.
ENGLineupItem contains additional information for a Nintendo Amiibo product.
func ReadENGLineupItem ¶
func ReadENGLineupItem(dir string, filename string) (v ENGLineupItem, err error)
ReadENGLineupItem reads a ENGLineupItem from disc.
func (ENGLineupItem) GetID ¶
func (e ENGLineupItem) GetID() string
GetID returns the ENGLineupItem ID.
type JPNAmiibo ¶
type JPNAmiibo struct { Chart bool `json:"chart"` // ID is the fully qualified ID for the Nintendo Amiibo product given by Nintendo Japan. ID string `json:"id"` // Large indicates the whether the Nintendo Amiibo product is considered a large scale item. Large bool `json:"large"` // Limited indicates the whether the Nintendo Amiibo product is a limited release. Limited bool `json:"limited"` // Name is the official name of the Nintendo Amiibo product. // // Name contains Japanese Hiragana. Name string `json:"name"` // NameAlternative is the alternative name given to the Nintendo Amiibo product. // // NameAlternative contains Japanese Hiragana. NameAlternative string `json:"name_alternative"` // New indicates the whether the Nintendo Amiibo product is a new release. New bool `json:"new"` // Price is the price of the Nintendo Amiibo product in JPY. // // Price can be empty. Price string `json:"price"` Priority int64 `json:"priority"` // ReleaseDate is the formatted timestamp of the Nintendo Amiibo products release date. ReleaseDate time.Time `json:"release_date"` // ReleaseDateAlternative is the Japanese formatted Nintendo Amiibo product release date. ReleaseDateAlternative time.Time `json:"release_data_alternative"` // Series is the defined series of products that the Nintendo Amiibo product is group or affiliated with. Series string `json:"series"` // Software is a collection of Nintendo software products the Nintendo Amiibo is compatible with. Software JPNAmiiboSoftwareMap `json:"software"` // URL is the direct URL to the Nintendo Amiibo product page. URL string `json:"url"` }
JPNAmiibo is a formatted JPN Nintendo Amiibo.
func NewJPNAmiibo ¶
func NewJPNAmiibo(JPNChartItem *JPNChartItem, JPNLineupItem *JPNLineupItem) (v JPNAmiibo, err error)
NewJPNAmiibo returns a new NewJPNAmiibo.
func ReadJPNAmiibo ¶
ReadJPNAmiibo reads a JPNAmiibo from disc.
func (*JPNAmiibo) AddJPNChartItem ¶
func (j *JPNAmiibo) AddJPNChartItem(v *JPNChartItem) (err error)
AddJPNChartItem adds a JPNChartItem to the JPNAmiibo.
func (*JPNAmiibo) AddJPNLineupItem ¶
func (j *JPNAmiibo) AddJPNLineupItem(v *JPNLineupItem) (err error)
AddJPNLineupItem adds a JPNLineupItem to the JPNAmiibo.
func (JPNAmiibo) GetAvailable ¶
GetAvailable returns the JPNAmiibo availability.
func (JPNAmiibo) GetLanguage ¶
GetLanguage returns the JPNAmiibo language.
func (JPNAmiibo) GetNameAlternative ¶
GetNameAlternative returns the JPNAmiibo name alternative.
func (JPNAmiibo) GetReleaseDate ¶
GetReleaseDate returns the JPNAmiibo release date.
type JPNAmiiboMap ¶
JPNAmiiboMap is a map of JPNAmiibo.
func NewJPNAmiiboMap ¶
func NewJPNAmiiboMap(JPNChart *JPNChart, JPNLineup *JPNLineup) (v JPNAmiiboMap, err error)
NewJPNAmiiboMap returns a new JPNAmiiboMap.
func ReadJPNAmiiboMap ¶
func ReadJPNAmiiboMap(dir string, filename string) (v JPNAmiiboMap, err error)
ReadJPNAmiiboMap reads a JPNAmiiboMap from disc.
type JPNAmiiboSoftware ¶
type JPNAmiiboSoftware struct { // Description is the verbose description for the Nintendo software product. Description string `json:"description"` // Digital indicates the whether the Nintendo software product is a digital only release. Digital bool `json:"digital"` // ID is the fully qualified ID for the Nintendo software product given by Nintendo Japan. ID string `json:"id"` // Name is the official name of the Nintendo software product. // // Name contains Japanese Hiragana. Name string `json:"name"` // URL is the direct URL to the Nintendo software product page. URL string `json:"url"` }
JPNAmiiboSoftware is a formatted JPNChartItemSoftware.
func NewJPNAmiiboSoftware ¶
func NewJPNAmiiboSoftware(JPNChartItemSoftware *JPNChartItemSoftware) (v JPNAmiiboSoftware, err error)
NewJPNAmiiboSoftware returns a new JPNAmiiboSoftware
func ReadJPNAmiiboSoftware ¶
func ReadJPNAmiiboSoftware(dir string, filename string) (v JPNAmiiboSoftware, err error)
ReadJPNAmiiboSoftware reads a JPNAmiiboSoftware from disc.
func (*JPNAmiiboSoftware) AddJPNChartItemSoftware ¶
func (j *JPNAmiiboSoftware) AddJPNChartItemSoftware(v *JPNChartItemSoftware) (err error)
AddJPNChartItemSoftware adds a JPNChartItemSoftware to the JPNAmiiboSoftware
func (JPNAmiiboSoftware) GetID ¶
func (j JPNAmiiboSoftware) GetID() string
GetID returns the JPNAmiiboSoftware ID.
type JPNAmiiboSoftwareMap ¶
type JPNAmiiboSoftwareMap (map[string]JPNAmiiboSoftware)
JPNAmiiboSoftwareMap is a map of JPNAmiiboSoftware.
func (*JPNAmiiboSoftwareMap) Add ¶
func (j *JPNAmiiboSoftwareMap) Add(v *JPNAmiiboSoftware)
Add adds a JPNAmiiboSoftware to the JPNAmiiboSoftwareMap.
type JPNChart ¶
type JPNChart struct { // XMLName is the xml node. XMLName xml.Name `xml:"items"` // Items is a collection of Nintendo Amiibo product information. Items []JPNChartItem `xml:"item"` }
JPNChart is the unfettered Japanese language Nintendo Amiibo product and game support information.
JPNChart is provided by Nintendo Japan.
https://www.nintendo.co.jp/hardware/amiibo/chart/data/chart.xml
func GetJPNChart ¶
GetJPNChart gets the JPNChart from nintendo.co.jp.
type JPNChartItem ¶
type JPNChartItem struct { // XMLName is the xml node. XMLName xml.Name `xml:"item"` // Code is the ID code for the Nintendo product. Code string `xml:"code"` // Name is the name of the Nintendo product in Japanese Hiragana. Name string `xml:"name"` // Series is the Japanese Hiragana for the Nintendo product that the Nintendo Amiibo product is affiliated with. // // Series will need to be translated from Japanese to English. Series string `xml:"series"` // Softwares is a collection of metadata that the Nintendo Amiibo product integrates with. Softwares []JPNChartItemSoftware `xml:"softwares>software"` }
JPNChartItem is the unfettered Japanese language Nintendo Amiibo product information.
func ReadJPNChartItem ¶
func ReadJPNChartItem(dir string, filename string) (v JPNChartItem, err error)
ReadJPNChartItem reads a JPNChartItem from disc.
type JPNChartItemSoftware ¶
type JPNChartItemSoftware struct { // Code is the ID code for the Nintendo product. Code string `xml:"code"` // Name is the name of the Nintendo product in Japanese Hiragana. Name string `xml:"name"` // More is the verbose description for the Nintendo Amiibo chart item. More string `xml:"more"` // Pickup is a provided property with an unclear purpose. Pickup int64 `xml:"pickup"` // ReadWrite is a provided property with an unclear purpose. ReadWrite string `xml:"readwrite"` }
JPNChartItemSoftware is the unfettered Japanese language Nintendo software support for a Nintendo Amiibo product.
type JPNChartSoftware ¶
type JPNChartSoftware struct { XMLName xml.Name `xml:"items"` Items []JPNChartSoftwareItem `xml:"item"` }
JPNChartSoftware is the unfettered Japanese language Nintendo Amiibo software information.
func GetJPNChartSoftware ¶
GetJPNChartSoftware gets the JPNChartSoftware from nintendo.co.jp.
func ReadJPNChartSoftware ¶
func ReadJPNChartSoftware(dir string, filename string) (v JPNChartSoftware, err error)
ReadJPNChartSoftware reads a JPNChartSoftware from disc.
type JPNChartSoftwareItem ¶
type JPNChartSoftwareItem struct { XMLName xml.Name `xml:"item"` Blank interface{} `xml:"blank"` Chart int `xml:"chart"` Chartseries string `xml:"chartseries"` Code string `xml:"code"` Date string `xml:"date"` DisplayDate string `xml:"dispalydate"` Icon int `xml:"icon"` Info interface{} `xml:"info"` Name string `xml:"name"` NameKana string `xml:"nameKana"` New int `xml:"new"` Price string `xml:"price"` Priority string `xml:"priority"` Series string `xml:"series"` SoftOption interface{} `xml:"softoption"` Subname string `xml:"subname"` }
JPNChartSoftwareItem is the unfettered Japanese language Nintendo Amiibo software information.
func ReadJPNChartSoftwareItem ¶
func ReadJPNChartSoftwareItem(dir string, filename string) (v JPNChartSoftwareItem, err error)
ReadJPNChartSoftwareItem reads a JPNChartSoftwareItem from disc.
func (JPNChartSoftwareItem) GetID ¶
func (j JPNChartSoftwareItem) GetID() string
GetID returns the JPNChartSoftwareItem ID.
type JPNLineup ¶
type JPNLineup struct { // XMLName is the xml node. XMLName xml.Name `xml:"items"` // Item is a collection of Nintendo Amiibo products containing their product information in Japanese. Items []JPNLineupItem `xml:"item"` // SeriesItem is a collection of Nintendo Amiibo product auxiliary information. SeriesItems []JPNLineupSeriesItem `xml:"series_item"` }
JPNLineup is the unfettered Japanese language Nintendo Amiibo product and game support information.
JPNLineup is provided by Nintendo of America.
https://www.nintendo.co.jp/hardware/amiibo/chart/data/lineup.xml
func GetJPNLineup ¶
GetJPNLineup gets the http.Response from nintendo.co.jp for the lineup Nintendo Amiibo XML.
type JPNLineupComing ¶
type JPNLineupComing struct { // XMLName is the xml node. XMLName xml.Name `xml:"data"` // Items is a collection of Nintendo Amiibo product information. Items []JPNLineupComingItem `xml:"items>item"` }
JPNLineupComing is the unfettered upcoming Nintendo Amiibo product information provided by nintendo.co.jp.
func GetJPNLineupComing ¶
GetJPNLineupComing gets the http.Response from nintendo.co.jp for the lineup Nintendo Amiibo XML.
func ReadJPNLineupComing ¶
func ReadJPNLineupComing(dir string, filename string) (v JPNLineupComing, err error)
ReadJPNLineupComing reads a JPNLineupComing from disc.
type JPNLineupComingItem ¶
type JPNLineupComingItem struct { // XMLName is the xml node. XMLName xml.Name `xml:"item"` // AmiiboLabel is the label for the Nintendo Amiibo product. AmiiboLabel string `xml:"amiibo_label"` // AmiiboLink is the URL for the Nintendo Amiibo product. AmiiboLink string `xml:"amiibo_link"` // AmiiboSeries is the Japanese Hiragana for the Nintendo product the Amiibo is affiliated with. AmiiboSeries string `xml:"amiibo_series"` // D is the YYYY-MM-DD datestamp for the Nintendo Amiibo product. D string `xml:"d"` // Link is the URL to the Nintendo Amiibo product. Link string `xml:"link"` // LinkTarget is the relative URL to the Nintendo Amiibo product. LinkTarget string `xml:"link_target"` // Memo is the verbose title for the Nintendo Amiibo product. Memo string `xml:"memo"` // Price is the price of the Nintendo Amiibo in Japanese Hiragana. Price string `xml:"price"` // ReleaseDateStr is the datestamp for the Nintendo Amiibo product release date in Japanese Hiragana. ReleaseDateStr string `xml:"release_date_str"` // ThumbVariation is the alternative namespace for the Nintendo Amiibo product. ThumbVariation string `xml:"thumb_variation"` // Title is the Japanese title in either Hiragana or Kanji for Nintendo Amiibo product. Title string `xml:"title"` // TitleRuby is the Japanese Hiragana for the Nintendo Amiibo product. TitleRuby string `xml:"title_ruby"` }
JPNLineupComingItem is the unfettered upcoming Nintendo Amiibo product information provided by nintendo.co.jp.
func ReadJPNLineupComingItem ¶
func ReadJPNLineupComingItem(dir string, filename string) (v JPNLineupComingItem, err error)
ReadJPNLineupComingItem reads a JPNLineupComingItem from disc.
func (JPNLineupComingItem) GetID ¶
func (j JPNLineupComingItem) GetID() string
GetID returns the JPNLineupComingItem ID.
type JPNLineupItem ¶
type JPNLineupItem struct { // XMLName is the xml node. XMLName xml.Name `xml:"item"` // BigSize is a integer representation of a boolean. // // BigSize relates to the scale of the Nintendo Amiibo product. BigSize int `xml:"bigsize"` // Chart is a integer representation of a boolean. // // Chart relates to the occurrence of the Nintendo Amiibo product in the chart XML. Chart int64 `xml:"chart"` // Code is the English ID for the Nintendo Amiibo product from the Japanese CDN. Code string `xml:"code"` // Date is the YYYYMMDD expression of the Nintendo Amiibo product release date. Date string `xml:"date"` // DisplayDate is the Japanese Hiragana expression of the Nintedo Amiibo product release date. // // DisplayDate currently (5/07/2020 (DD-MM-YYYY)) has a typo on the nintendo.co.jp and exists // as dispalydate. DisplayDate string `xml:"displayDate"` // Limited is a integer representation of a boolean. // // Limited relates to the rareness of the Nintendo Amiibo product. Limited int `xml:"limited"` // Name is the name of the Nintendo product in Japanese Hiragana. Name string `xml:"name"` // NameKana is the name of the Nintendo Amiibo product in Japanese Hiragana. NameKana string `xml:"nameKana"` // New is a integer representation of a boolean. // // New relates to the newness of the Nintendo Amiibo product. New int `xml:"new"` // Price is the price of the Nintendo Amiibo product in Japanese Yen. Price string `xml:"price"` // Priority is the numerical rank of the Nintendo Amiibo product. Priority int64 `xml:"priority"` // Series is the Japanese Hiragana for the Nintendo product that the Nintendo Amiibo product is affiliated with. // // Series will need to be translated from Japanese to English. Series string `xml:"series"` }
JPNLineupItem is the unfettered Nintendo Amiibo product information from nintendo.co.jp.
JPNLineupItem is provided in Japanese Hiragana.
func ReadJPNLineupItem ¶
func ReadJPNLineupItem(dir string, filename string) (v JPNLineupItem, err error)
ReadJPNLineupItem reads a JPNLineupItem from disc.
func (JPNLineupItem) GetID ¶
func (j JPNLineupItem) GetID() string
GetID returns the JPNLineItem ID.
type JPNLineupSeriesItem ¶
type JPNLineupSeriesItem struct { // XMLName is the xml node. XMLName xml.Name `xml:"series_item"` // BGColor is the hexidecimal code for the Nintendo Amiibo product. BGColor string `xml:"bgcolor"` // Color is the hexidecimal code for the Nintendo Amiibo product. Color string `xml:"color"` // Name is the name of the Nintendo product in Japanese Hiragana. Name string `xml:"name"` }
JPNLineupSeriesItem is the unfettered Nintendo Amiibo product additional information from nintendo.co.jp.
JPNLineupSeriesItem is provided in Japanese Hiragana.
func ReadJPNLineupSeriesItem ¶
func ReadJPNLineupSeriesItem(dir string, filename string) (v JPNLineupSeriesItem, err error)
ReadJPNLineupSeriesItem reads a JPNLineupSeriesItem from disc.
type JPNSoftware ¶
type JPNSoftware struct { // ID is the fully qualified ID for the Nintendo software product given by Nintendo Japan. ID string `json:"id"` // Name is the official name of the Nintendo software product. // // Name contains Japanese Hiragana. Name string `json:"name"` // NameAlternative is the alternative name given to the Nintendo software product. // // NameAlternative contains Japanese Hiragana. NameAlternative string `json:"name_alternative"` // Platform is the Nintendo hardware platform the software is available on. Platform string `json:"platform"` // Price is the price of the Nintendo software product in JPY. // // Price can be empty. Price string `json:"price"` Priority string `json:"priority"` // ReleaseDate is the formatted timestamp of the Nintendo software products release date. ReleaseDate time.Time `json:"release_date"` // URL is the direct URL to the Nintendo software product page. URL string `json:"url"` }
JPNSoftware is a formatted JPNChartSoftwareItem.
func ReadJPNSoftware ¶
func ReadJPNSoftware(dir string, filename string) (v JPNSoftware, err error)
ReadJPNSoftware reads a JPNSoftware from disc.
func (*JPNSoftware) AddJPNChartSoftwareItem ¶
func (j *JPNSoftware) AddJPNChartSoftwareItem(v *JPNChartSoftwareItem) (err error)
AddJPNChartSoftwareItem adds a JPNChartSoftwareItem to the JPNSoftware.
func (JPNSoftware) GetAvailable ¶
func (j JPNSoftware) GetAvailable() bool
GetAvailable returns the JPNSoftware availability.
func (JPNSoftware) GetLanguage ¶
func (j JPNSoftware) GetLanguage() language.Tag
GetLanguage returns the JPNSoftware language.
func (JPNSoftware) GetMD5 ¶
func (j JPNSoftware) GetMD5() (MD5 string, err error)
GetMD5 returns the JPNSoftware MD5.
func (JPNSoftware) GetName ¶
func (j JPNSoftware) GetName() string
GetName returns the JPNSoftware name.
func (JPNSoftware) GetNameAlternative ¶
func (j JPNSoftware) GetNameAlternative() string
GetNameAlternative returns the JPNSoftware name alternative.
func (JPNSoftware) GetReleaseDate ¶
func (j JPNSoftware) GetReleaseDate() time.Time
GetReleaseDate returns the JPNSoftware release date.
func (JPNSoftware) GetURL ¶
func (j JPNSoftware) GetURL() string
GetURL returns the JPNSoftware URL.
type JPNSoftwareMap ¶
type JPNSoftwareMap (map[string]JPNSoftware)
JPNSoftwareMap is a map of JPNSoftware.
func NewJPNSoftwareMap ¶
func NewJPNSoftwareMap(JPNChartSoftware *JPNChartSoftware) (v JPNSoftwareMap, err error)
NewJPNSoftwareMap returns a new JPNSoftwareMap.
func ReadJPNSoftwareMap ¶
func ReadJPNSoftwareMap(dir string, filename string) (v JPNSoftwareMap, err error)
ReadJPNSoftwareMap reads a JPNSoftwareMap from disc.
type Software ¶
type Software interface { GetAvailable() bool GetID() string GetLanguage() language.Tag GetMD5() (string, error) GetName() string GetNameAlternative() string GetReleaseDate() time.Time GetURL() string }
Software is a generic interface for an Nintendo software product.
Software provides a handler to get all common fields between the ENGGame and JPNSoftware.
Source Files ¶
- amiibo.go
- common.go
- doc.go
- en-amiibo-map.go
- en-amiibo.go
- en-chart-amiibo.go
- en-chart-game.go
- en-chart-item.go
- en-chart.go
- en-game-map.go
- en-game.go
- en-lineup-amiibo.go
- en-lineup-item.go
- en-lineup.go
- jp-amiibo-map.go
- jp-amiibo-software-map.go
- jp-amiibo-software.go
- jp-amiibo.go
- jp-chart-item-software.go
- jp-chart-item.go
- jp-chart-software-item.go
- jp-chart-software.go
- jp-chart.go
- jp-lineup-coming-item.go
- jp-lineup-coming.go
- jp-lineup-item.go
- jp-lineup-series-item.go
- jp-lineup.go
- jp-software-map.go
- jp-software.go
- software.go