Gray is a simple server that can receive messages from your project. It is useful for debugging and testing purposes.
Start the server.
go run main.goCopy the gray folder into your porject. You may want to add it to your .gitignore to prevent it from being uploaded to your repository.
You can also use the following command to copy the gray folder into your project:
go run main.go copy PATH_TO_YOUR_PROJECTTo send something to the server, you can use the following code in your project:
import gray
func main() {
gray.Send("Hello, World!")
}Some examples of what you can send to the server are located in the examples/main.go folder. You can run them by using the following command:
go run examples/your_example.goIt is inspired by Ray from Spatie.
Used libraries:
