Versions in this module Expand all Collapse all v0 v0.1.0 Aug 25, 2026 Changes in this version + var ErrInvalidLunarDate = errors.New("amlich: lunar date does not exist") + var ErrInvalidSolarDate = errors.New("amlich: invalid solar date") + func LunarToSolar(l LunarDate, z Zone) (year, month, day int, err error) + func MonthDays(l LunarDate, z Zone) (int, error) + type Country int + const KR + const VN + func (c Country) Zone() Zone + type Divergent struct + KR string + LunarDay int + LunarMonth int + LunarYear int + NameKR string + NameVN string + VN string + func Divergence(fromYear, toYear int) []Divergent + type Holiday struct + Country Country + Day int + Month int + Name string + NameEN string + type HolidayDate struct + SolarD int + SolarM int + SolarY int + Year int + func Holidays(year int, c Country) []HolidayDate + func (h HolidayDate) ISO() string + type LunarDate struct + Day int + Leap bool + Month int + Year int + func SolarToLunar(year, month, day int, z Zone) (LunarDate, error) + func (l LunarDate) String() string + type YearName struct + AnimalEN string + Korean string + Vietnamese string + func CanChi(lunarYear int) YearName + type Zone float64 + const China + const Korea + const Vietnam