This library provides a collection of utility functions designed to simplify common tasks and improve code robustness. It includes a main tool
package and a safetool
sub-package, where functions are designed to return errors instead of panicking.
- Convenient Utilities: A collection of helper functions for various tasks.
- Safe Alternatives: The
safetool
sub-package offers functions that return errors, promoting more resilient error handling. - Well-Tested: Includes a comprehensive test suite to ensure reliability.
To install the tool
package, use go get
:
go get -u github.com/iamwavecut/tool
This repository contains the following main packages:
The main package containing various utility functions. These functions might panic on unexpected input or errors.
The safetool
package provides alternative implementations of functions found in the tool
package. These "safe" versions are designed to return an error
instead of muting errors, allowing for more controlled error handling in your applications.
Contributions are welcome! Please feel free to submit a pull request or open an issue if you have suggestions or find a bug.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License.