Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( JST = time.FixedZone("Asia/Tokyo", 9*60*60) // Eras means list of era, this will be used by searching // refer from: https://ja.wikipedia.org/wiki/%E5%85%83%E5%8F%B7%E4%B8%80%E8%A6%A7_(%E6%97%A5%E6%9C%AC) // ! we can override this for other GENGOs Eras = map[eraID]Era{ "meiji": {ShortName: "M", KanjiName: "明治", StartedAt: time.Date(1868, 10, 23, 0, 0, 0, 0, JST)}, "taisho": {ShortName: "T", KanjiName: "大正", StartedAt: time.Date(1912, 7, 30, 0, 0, 0, 0, JST)}, "showa": {ShortName: "S", KanjiName: "昭和", StartedAt: time.Date(1926, 12, 25, 0, 0, 0, 0, JST)}, "heisei": {ShortName: "H", KanjiName: "平成", StartedAt: time.Date(1989, 1, 8, 0, 0, 0, 0, JST)}, "reiwa": {ShortName: "R", KanjiName: "令和", StartedAt: time.Date(2019, 5, 1, 0, 0, 0, 0, JST)}, } // EraOrder must be correct, this will be used as order when searching // ! we can override this for other GENGOs EraOrder = []eraID{"reiwa", "heisei", "showa", "taisho", "meiji"} // EraNotFound using to era error type EraNotFound Era )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.