-
Notifications
You must be signed in to change notification settings - Fork 0
/
jp-lineup-series-item.go
33 lines (25 loc) · 1.04 KB
/
jp-lineup-series-item.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package amiibo
import "encoding/xml"
// JPNLineupSeriesItem is the unfettered Nintendo Amiibo product additional information from nintendo.co.jp.
//
// JPNLineupSeriesItem is provided in Japanese Hiragana.
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"`
}
// ReadJPNLineupSeriesItem reads a JPNLineupSeriesItem from disc.
func ReadJPNLineupSeriesItem(dir string, filename string) (v JPNLineupSeriesItem, err error) {
err = readXMLFile(dir, filename, &v)
return v, err
}
// WriteJPNLineupSeriesItem writes a JPNLineupSeriesItem to disc.
func WriteJPNLineupSeriesItem(dir string, filename string, v *JPNLineupSeriesItem) (fullpath string, err error) {
fullpath, err = writeXMLFile(dir, filename, v)
return
}