sure
enhances your existing Go code by adding assertions and crash handling. It automatically asserts conditions and crashes when errors occur, allowing you to improve error handling in legacy code without needing to manually add repetitive checks.
Generates Go classes from predefined objects, embedding assertion logic to prevent common errors.
Extracts functions from existing code and generates Go packages, integrating assertion and crash handling.
Creates package-level functions that wrap methods of a singleton struct, simplifying access usage.
- Generating Classes with
sure_cls_gen
- Generating Packages with
sure_pkg_gen
- Generating Singleton with
cls_stub_gen
sure
is open-source and released under the MIT License. See the LICENSE file for more information.
Welcome to contribute to this project by submitting pull requests or reporting issues.
If you find this package helpful, give it a star on GitHub!
Thank you for your support!
Happy Coding with sure
! 🎉
Give me stars. Thank you!!!