diff options
author | rtz12 <koenig@fagott.pw> | 2015-12-22 21:30:06 (UTC) |
---|---|---|
committer | rtz12 <koenig@fagott.pw> | 2015-12-22 21:30:06 (UTC) |
commit | 9907271d4fddee0bafbba0d534a2c041156034a8 (patch) | |
tree | 1dce8edae0951d460164989666fb2e71f9d83ded /modules | |
parent | 4254929eea29a42896fd57185d6f52fdc3efdca4 (diff) |
Modell fuer ein Gril hinzugefuegt
Diffstat (limited to 'modules')
-rw-r--r-- | modules/grils/gril.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/grils/gril.go b/modules/grils/gril.go new file mode 100644 index 0000000..645a97a --- /dev/null +++ b/modules/grils/gril.go | |||
@@ -0,0 +1,23 @@ | |||
1 | package grils | ||
2 | |||
3 | import ( | ||
4 | "time" | ||
5 | ) | ||
6 | |||
7 | type DataSource int | ||
8 | |||
9 | const ( | ||
10 | DataSourceACD DataSource = iota | ||
11 | DataSourceAniDB | ||
12 | ) | ||
13 | |||
14 | type Gril struct { | ||
15 | ID int | ||
16 | KanjiName string | ||
17 | RomajiName string | ||
18 | OtherNames []string | ||
19 | Age int | ||
20 | Birthday time.Time | ||
21 | Tags []string | ||
22 | ForeignIDs map[DataSource]int | ||
23 | } | ||