Skip to content

Releases: ultramcu/go-thainum

v0.4.1 — README feature docs

Choose a tag to compare

@ultramcu ultramcu released this 30 May 16:19

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

Choose a tag to compare

@ultramcu ultramcu released this 30 May 16:05

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

Choose a tag to compare

@ultramcu ultramcu released this 25 May 04:06

Docs: runnable godoc examples for the date/time, duration, ordinal, fraction and Buddhist-Era year APIs (now visible on pkg.go.dev). No code changes.

v0.3.1

Choose a tag to compare

@ultramcu ultramcu released this 25 May 03:56

Docs: README Features list now covers the date/time, duration, ordinal, fraction and Buddhist-Era year APIs added in 0.2.0–0.3.0. No code changes.

v0.3.0

Choose a tag to compare

@ultramcu ultramcu released this 25 May 03:53

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 นาฬิกา) and FormatClock (colloquial ตี/โมง/ทุ่ม)
  • FormatDuration — วัน/ชั่วโมง/นาที/วินาที

v0.2.0

Choose a tag to compare

@ultramcu ultramcu released this 25 May 03:45

Adds:

  • Ordinals — Ordinal(n) (ที่…)
  • Fractions — Fraction(num,den) (เศษ…ส่วน…)
  • Buddhist-Era years — Year(be) (พุทธศักราช…) + CEToBE/BEToCE
  • SatangFromFloat(float64) int64; BahtFromFloat now routes float→satang→BahtSatang

All new helpers are also Speller methods (EtMode-aware).

v0.1.0

Choose a tag to compare

@ultramcu ultramcu released this 25 May 03:45

Initial release — Thai number toolkit: numerals (๐-๙↔0-9), number→Thai words (incl. decimals, big, EtMode), Thai Baht text, money/number formatting, and reverse parsing (words→number). Pure Go, dependency-free core + optional decimaladapter.