notifile
With this no library you can easily create notification files for your Go projects. These must then be stored in the directory you specify so that echGo can read them.
You can use the following example to create a file. Please note that there are currently only the following notification channels: gotify, telegram, smtp & webhook.
data := Data{
Channel: []string{"gotify", "telegram"},
Headline: "New notification!",
Message: "Here you will find your message.",
}
err := Create(data, "/var/lib/echgo/notification")
if err != nil {
log.Fatalln(err)
}