Skip to content

LTS Version

Latest
Compare
Choose a tag to compare
@ZiadMansourM ZiadMansourM released this 05 Jan 18:24

fstr v1.0.0 LTS

We are excited to announce the first stable release of fstr - v1.0.0! After rigorous testing, numerous enhancements, and valuable community feedback, fstr is now mature and robust, providing a comprehensive string interpolation and formatting solution inspired by Python's f-strings, tailored for the Go community.

🚀 What's New in v1.0.0?

Stable and Robust: fstr v1.0.0 marks a milestone in reliability and stability. With an extensive suite of tests and refined error handling, you can trust fstr for critical and complex string manipulation tasks in your production applications.

Enhanced Number Formatting: Improved the precision and formatting capabilities of numbers, ensuring accurate representation for financial, scientific, and other precision-sensitive applications.

Extended Syntax Support: Introducing a shorthand notation {key=} for easier key-value pair generation, ideal for creating query strings, configuration files, or detailed reports.

Performance Optimizations: Under-the-hood enhancements to make fstr faster and more efficient, ensuring minimal impact on application performance even in high-load scenarios.

Community-Driven Features: Incorporating feedback and requested features from our users to make fstr more intuitive and powerful.

🌟 Features at a Glance

  1. Simple and Formatted Placeholders: Replace {key} or {key:.2f} with values, supporting various formatting options.
  2. Custom Formatting: Versatile formatNumber function for complex numeric representations.
  3. Error Handling: Explicit error reporting for robust application development.
  4. Convenience Wrappers: Quick and panic-free string interpolation with Eval.
  5. Extended Syntax: New {key=} syntax for streamlined key-value pair generation.
  6. Improved Precision: Accurate number formatting for all your precision needs.

💡 Example Usage

// Using fstr in your Go application
fmt.Println(fstr.Eval(
    "Welcome, {name}! Balance: {balance:,.2f} USD.",
    map[string]interface{}{
        "name":    "Alex",
        "balance": 98765.432,
    },
))

📝 Release Checklist

  • Extensive Testing and QA.
  • Continuous Integration and Automated Builds.
  • Documentation and Examples Updated.
  • Community Feedback Incorporated.

⏩ Next Steps

As we celebrate the release of fstr 1.0, we are already looking forward to the next enhancements, including more customization options, performance tweaks, and additional utility functions. Stay tuned!

🙏 Acknowledgments

A huge thank you to all the contributors, users, and supporters of fstr who have made this milestone possible. Your insights, feedback, and encouragement have been invaluable.


Embrace the power of string formatting in Go with fstr v1.0.0. Happy coding!