Releases: ultramcu/go-thainum
Release list
v0.4.1 — README feature docs
Documentation only. The README now documents all v0.4.0 features (speak/lottery/phone/thai_id/percent/short/qualifiers/idioms/extract/parse options/rounding/money subpackage/CLI). No code changes since v0.4.0.
v0.4.0 — full parity with thainum.dart 0.5.3
Brings go-thainum to full feature parity with the Dart sibling thainum 0.5.3 — all backward-compatible.
New modules: speak (digit reading) · lottery · phone · thai_id (mod-11 checksum) · percent · short (abbreviated magnitudes) · qualifiers · idioms · money subpackage (typed Baht/Satang/BigInt).
parse family: ExtractNumbers · ParseDecimal · parse options (Strict/Lenient/AllowColloquial) · IsDigits.
money/rounding/CLI: SatangRounding (5 modes) on BahtFromString · cmd/thainum CLI (spell/baht/parse/digits/date).
See CHANGELOG for the full list.
v0.3.2
v0.3.1
v0.3.0
Adds Thai date & time support:
- Thai dates —
MonthTH/WeekdayTH,BuddhistYear,FormatDate/FormatDateAbbr/FormatDateFull ParseDate— Thai date string →time.Time(round-trips the formatters)- Time of day —
FormatTime(formal นาฬิกา) andFormatClock(colloquial ตี/โมง/ทุ่ม) FormatDuration— วัน/ชั่วโมง/นาที/วินาที
v0.2.0
Adds:
- Ordinals —
Ordinal(n)(ที่…) - Fractions —
Fraction(num,den)(เศษ…ส่วน…) - Buddhist-Era years —
Year(be)(พุทธศักราช…) +CEToBE/BEToCE SatangFromFloat(float64) int64;BahtFromFloatnow routes float→satang→BahtSatang
All new helpers are also Speller methods (EtMode-aware).