Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PREFCODE_MIN = HOKKAIDO PREFCODE_MAX = OKINAWA )
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code uint
Code is prefecture code in Japan
const ( UNKNOWN Code = iota HOKKAIDO AOMORI IWATE MIYAGI AKITA YAMAGATA FUKUSHIMA IBARAKI TOCHIGI GUNMA SAITAMA CHIBA TOKYO KANAGAWA NIIGATA TOYAMA ISHIKAWA FUKUI YAMANASHI NAGANO GIFU SHIZUOKA AICHI MIE SHIGA KYOTO OSAKA HYOGO NARA WAKAYAMA TOTTORI SHIMANE OKAYAMA HIROSHIMA YAMAGUCHI TOKUSHIMA KAGAWA EHIME KOCHI FUKUOKA SAGA NAGASAKI KUMAMOTO OITA MIYAZAKI KAGOSHIMA OKINAWA )
func FromCodeString ¶
func FromPrefName ¶
func (Code) MarshalJSON ¶
MarshalJSON method returns string for json.Marshal().
func (*Code) UnmarshalJSON ¶
UnmarshalJSON method returns result of Unmarshal for json.Unmarshal().
Click to show internal directories.
Click to hide internal directories.