Skip to content

Latest commit

 

History

History
63 lines (36 loc) · 2.48 KB

README.md

File metadata and controls

63 lines (36 loc) · 2.48 KB

GitHub Workflow Status (branch) GoDoc Coverage Status Supported Go Versions GitHub Release Go Report Card

sure: Add Assertions and Crash Handling to Existing Go Code

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.

CHINESE README

中文说明

CREATION_IDEAS

CREATION_IDEAS

Packages Overview

sure_cls_gen: Generates Go Classes with Assertions

Generates Go classes from predefined objects, embedding assertion logic to prevent common errors.

sure_pkg_gen: Generates Go Packages with Error Handling

Extracts functions from existing code and generates Go packages, integrating assertion and crash handling.

cls_stub_gen: Generates Package-Level Function Wrappers

Creates package-level functions that wrap methods of a singleton struct, simplifying access usage.

Usage

Examples:


License

sure is open-source and released under the MIT License. See the LICENSE file for more information.


Support

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!!!

See stars

see stars