Skip to content
This repository was archived by the owner on Oct 28, 2026. It is now read-only.

v3.0.0

Choose a tag to compare

@SerhiiCho SerhiiCho released this 22 Nov 14:08
ba76002

BREAKING CHANGES!

Upgrade Guide from v2 to v3

  • Improved error handling. The Parse function now returns an error as the second returned value
  • Update package namespace. Changed package namespace to github.com/SerhiiCho/timeago/v3
  • Rename a function. Renamed SetConfig function to Configure to make it better fit into Go naming conventions
  • New language files structure. Change the file structure for JSON language files. They have now format to match CLDR Specifications
  • New language addition is improved. Add ability to change the output of the Parse function when adding a support for a new language by adding a format field to a JSON file
  • New function Reconfigure. Added a new function to reconfigure the package configurations. Unlike the Configure function, it will overwrite the previous configurations with the new ones.