This project provides a collection of libraries for various functionalities. Here's a brief overview of each library:
-
xmessage - provides asynchronous message handling functionalities, including idempotent inbox and transactional outbox.
-
xretry - provides functionalities to retry operations.
-
xerrors - provides enhanced error handling capabilities.
-
xlog - provides logging functionalities.
-
xtoken - provides token generation and handling functionalities.
-
xhash - provides hashing functionalities, including bcrypt hashing.
-
xtest - provides utilities for testing.
For more details about each library, please refer to their respective README.md
files.
These instructions will guide you on how to use this library in your Go projects.
To use this library in your Go project, you need to download it using the go get
command:
go get github.com/hardiksachan/x
After downloading and importing the library, you can use its functionalities in your Go code. Here's an example:
package main
import (
"fmt"
"github.com/hardiksachan/x/xerrors"
)
func main() {
err := xerrors.New("this is an error")
fmt.Println(err)
}
Hardik Sachan
Give a ⭐️ if you like this project!