Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( PCJP_MIN = PCJP_HOKKAIDO PCJP_MAX = PCJP_OKINAWA )
Functions ¶
This section is empty.
Types ¶
type CountryCode ¶
type CountryCode int
CountryCode is country code by WHO.
const ( CC_Other CountryCode = iota // Other CC_AD // Andorra CC_AE // United Arab Emirates CC_AF // Afghanistan CC_AG // Antigua and Barbuda CC_AI // Anguilla CC_AL // Albania CC_AM // Armenia CC_AO // Angola CC_AR // Argentina CC_AT // Austria CC_AU // Australia CC_AW // Aruba CC_AZ // Azerbaijan CC_BA // Bosnia and Herzegovina CC_BB // Barbados CC_BD // Bangladesh CC_BE // Belgium CC_BF // Burkina Faso CC_BG // Bulgaria CC_BH // Bahrain CC_BI // Burundi CC_BJ // Benin CC_BL // Saint Barthélemy CC_BM // Bermuda CC_BN // Brunei Darussalam CC_BO // Bolivia (Plurinational State of) CC_BQ // Bonaire, Sint Eustatius and Saba CC_BR // Brazil CC_BS // Bahamas CC_BT // Bhutan CC_BW // Botswana CC_BY // Belarus CC_BZ // Belize CC_CA // Canada CC_CD // Democratic Republic of the Congo CC_CF // Central African Republic CC_CG // Congo CC_CH // Switzerland CC_CI // Côte d’Ivoire CC_CL // Chile CC_CM // Cameroon CC_CN // China CC_CO // Colombia CC_CR // Costa Rica CC_CU // Cuba CC_CV // Cabo Verde CC_CW // Curaçao CC_CY // Cyprus CC_CZ // Czechia CC_DE // Germany CC_DJ // Djibouti CC_DK // Denmark CC_DM // Dominica CC_DO // Dominican Republic CC_DZ // Algeria CC_EC // Ecuador CC_EE // Estonia CC_EG // Egypt CC_ER // Eritrea CC_ES // Spain CC_ET // Ethiopia CC_FI // Finland CC_FJ // Fiji CC_FK // Falkland Islands (Malvinas) CC_FO // Faroe Islands CC_FR // France CC_GA // Gabon CC_GB // The United Kingdom CC_GD // Grenada CC_GE // Georgia CC_GF // French Guiana CC_GG // Guernsey CC_GH // Ghana CC_GI // Gibraltar CC_GL // Greenland CC_GM // Gambia CC_GN // Guinea CC_GP // Guadeloupe CC_GQ // Equatorial Guinea CC_GR // Greece CC_GT // Guatemala CC_GU // Guam CC_GW // Guinea-Bissau CC_GY // Guyana CC_HN // Honduras CC_HR // Croatia CC_HT // Haiti CC_HU // Hungary CC_ID // Indonesia CC_IE // Ireland CC_IL // Israel CC_IM // Isle of Man CC_IN // India CC_IQ // Iraq CC_IR // Iran (Islamic Republic of) CC_IS // Iceland CC_IT // Italy CC_JE // Jersey CC_JM // Jamaica CC_JO // Jordan CC_JP // Japan CC_KE // Kenya CC_KG // Kyrgyzstan CC_KH // Cambodia CC_KM // Comoros CC_KN // Saint Kitts and Nevis CC_KR // Republic of Korea CC_KW // Kuwait CC_KY // Cayman Islands CC_KZ // Kazakhstan CC_LA // Lao People's Democratic Republic CC_LB // Lebanon CC_LC // Saint Lucia CC_LI // Liechtenstein CC_LK // Sri Lanka CC_LR // Liberia CC_LS // Lesotho CC_LT // Lithuania CC_LU // Luxembourg CC_LV // Latvia CC_LY // Libya CC_MA // Morocco CC_MC // Monaco CC_MD // Republic of Moldova CC_ME // Montenegro CC_MF // Saint Martin CC_MG // Madagascar CC_MK // North Macedonia CC_ML // Mali CC_MM // Myanmar CC_MN // Mongolia CC_MP // Northern Mariana Islands (Commonwealth of the) CC_MQ // Martinique CC_MR // Mauritania CC_MS // Montserrat CC_MT // Malta CC_MU // Mauritius CC_MV // Maldives CC_MW // Malawi CC_MX // Mexico CC_MY // Malaysia CC_MZ // Mozambique CC_NA // Namibia CC_NC // New Caledonia CC_NE // Niger CC_NG // Nigeria CC_NI // Nicaragua CC_NL // Netherlands CC_NO // Norway CC_NP // Nepal CC_NZ // New Zealand CC_OM // Oman CC_PA // Panama CC_PE // Peru CC_PF // French Polynesia CC_PG // Papua New Guinea CC_PH // Philippines CC_PK // Pakistan CC_PL // Poland CC_PM // Saint Pierre and Miquelon CC_PR // Puerto Rico CC_PS // occupied Palestinian territory, including east Jerusalem CC_PT // Portugal CC_PY // Paraguay CC_QA // Qatar CC_RE // Réunion CC_RO // Romania CC_RS // Serbia CC_RU // Russian Federation CC_RW // Rwanda CC_SA // Saudi Arabia CC_SC // Seychelles CC_SD // Sudan CC_SE // Sweden CC_SG // Singapore CC_SI // Slovenia CC_SK // Slovakia CC_SL // Sierra Leone CC_SM // San Marino CC_SN // Senegal CC_SO // Somalia CC_SR // Suriname CC_SS // South Sudan CC_ST // Sao Tome and Principe CC_SV // El Salvador CC_SX // Sint Maarten CC_SY // Syrian Arab Republic CC_SZ // Eswatini CC_TC // Turks and Caicos Islands CC_TD // Chad CC_TG // Togo CC_TH // Thailand CC_TJ // Tajikistan CC_TL // Timor-Leste CC_TN // Tunisia CC_TR // Turkey CC_TT // Trinidad and Tobago CC_TZ // United Republic of Tanzania CC_UA // Ukraine CC_UG // Uganda CC_US // United States of America CC_UY // Uruguay CC_UZ // Uzbekistan CC_VA // Holy See CC_VC // Saint Vincent and the Grenadines CC_VE // Venezuela (Bolivarian Republic of) CC_VG // British Virgin Islands CC_VI // United States Virgin Islands CC_VN // Viet Nam CC_XK // Kosovo CC_YE // Yemen CC_YT // Mayotte CC_ZA // South Africa CC_ZM // Zambia CC_ZW // Zimbabwe )
func GetCountryCode ¶
func GetCountryCode(s string) CountryCode
GetCountryCode function returns CountryCode instrance from string.
func (*CountryCode) MarshalJSON ¶
func (cc *CountryCode) MarshalJSON() ([]byte, error)
MarshalJSON method returns string for json.Marshal().
func (CountryCode) String ¶
func (cc CountryCode) String() string
func (*CountryCode) UnmarshalJSON ¶
func (cc *CountryCode) UnmarshalJSON(b []byte) error
UnmarshalJSON method returns result of Unmarshal for json.Unmarshal().
type Date ¶
Time is wrapper class of time.Time.
func NewDateString ¶
NewDateString returns Date instance from formatted date string.
func NewDateTime ¶
NewDateTime returns Date instance from fime.Time.
func (*Date) MarshalJSON ¶
MarshalJSON returns time string with RFC3339 format for json.Marshal().
func (*Date) UnmarshalJSON ¶
UnmarshalJSON returns result of Unmarshal for json.Unmarshal().
type Period ¶
Period is class of time scope
func (Period) IsZeroStart ¶
IsZeroStart method returns trus if Start element is zero values.
func (Period) StringStart ¶
StringStart method returns string of Period.Start
type PrefJpCode ¶
type PrefJpCode uint
PrefJpCode is prefecture code in Japan
const ( PCJP_UNKNOWN PrefJpCode = iota PCJP_HOKKAIDO PCJP_AOMORI PCJP_IWATE PCJP_MIYAGI PCJP_AKITA PCJP_YAMAGATA PCJP_FUKUSHIMA PCJP_IBARAKI PCJP_TOCHIGI PCJP_GUNMA PCJP_SAITAMA PCJP_CHIBA PCJP_TOKYO PCJP_KANAGAWA PCJP_NIIGATA PCJP_TOYAMA PCJP_ISHIKAWA PCJP_FUKUI PCJP_YAMANASHI PCJP_NAGANO PCJP_GIFU PCJP_SHIZUOKA PCJP_AICHI PCJP_MIE PCJP_SHIGA PCJP_KYOTO PCJP_OSAKA PCJP_HYOGO PCJP_NARA PCJP_WAKAYAMA PCJP_TOTTORI PCJP_SHIMANE PCJP_OKAYAMA PCJP_HIROSHIMA PCJP_YAMAGUCHI PCJP_TOKUSHIMA PCJP_KAGAWA PCJP_EHIME PCJP_KOCHI PCJP_FUKUOKA PCJP_SAGA PCJP_NAGASAKI PCJP_KUMAMOTO PCJP_OITA PCJP_MIYAZAKI PCJP_KAGOSHIMA PCJP_OKINAWA )
func GetFromPrefCode ¶
func GetFromPrefCode(s string) PrefJpCode
func GetFromPrefName ¶
func GetFromPrefName(s string) PrefJpCode
func (PrefJpCode) MarshalJSON ¶
func (pc PrefJpCode) MarshalJSON() ([]byte, error)
MarshalJSON method returns string for json.Marshal().
func (PrefJpCode) Name ¶
func (pc PrefJpCode) Name() string
func (PrefJpCode) NameLower ¶
func (pc PrefJpCode) NameLower() string
func (PrefJpCode) String ¶
func (pc PrefJpCode) String() string
func (PrefJpCode) Title ¶
func (pc PrefJpCode) Title() string
func (*PrefJpCode) UnmarshalJSON ¶
func (pc *PrefJpCode) UnmarshalJSON(b []byte) error
UnmarshalJSON method returns result of Unmarshal for json.Unmarshal().
type RegionCode ¶
type RegionCode int
RegionCode is WHO region code
const ( UnknownRO RegionCode = iota // Unknown region AFRO // Africa AMRO // Americas EMRO // Eastern Mediterranean EURO // Europe SEARO // South-East Asia WPRO // Western Pacific OtherRO // Other )
func GetRegionCode ¶
func GetRegionCode(s string) RegionCode
GetRegionCode function returns RegionCode instrance from string.
func (*RegionCode) MarshalJSON ¶
func (rc *RegionCode) MarshalJSON() ([]byte, error)
MarshalJSON method returns string for json.Marshal().
func (RegionCode) String ¶
func (rc RegionCode) String() string
func (*RegionCode) UnmarshalJSON ¶
func (rc *RegionCode) UnmarshalJSON(b []byte) error
UnmarshalJSON method returns result of Unmarshal for json.Unmarshal().