f6e5674b63
Signed-off-by: Odyssey <odyssey346@disroot.org>
19 lines
363 B
Go
19 lines
363 B
Go
package config
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/spf13/viper"
|
|
)
|
|
|
|
func ShoutrrrURL() string {
|
|
viper.SetConfigName("config")
|
|
viper.AddConfigPath("./data")
|
|
err := viper.ReadInConfig()
|
|
if err != nil {
|
|
log.Println("Error reading config. Error getting: segfautils.shoutrrr_url", err.Error())
|
|
}
|
|
result := viper.GetString("segfautils.shoutrrr_url")
|
|
return result
|
|
}
|