mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 13:39:53 +00:00
18 lines
281 B
Go
18 lines
281 B
Go
package notify
|
|
|
|
func getString(conf map[string]any, key string) string {
|
|
if _, ok := conf[key]; !ok {
|
|
return ""
|
|
}
|
|
|
|
return conf[key].(string)
|
|
}
|
|
|
|
func getBool(conf map[string]any, key string) bool {
|
|
if _, ok := conf[key]; !ok {
|
|
return false
|
|
}
|
|
|
|
return conf[key].(bool)
|
|
}
|