mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 05:29:51 +00:00
22 lines
512 B
Go
22 lines
512 B
Go
package notify
|
|
|
|
import (
|
|
"github.com/usual2970/certimate/internal/pkg/utils/maps"
|
|
)
|
|
|
|
func getConfigAsString(conf map[string]any, key string) string {
|
|
return maps.GetValueAsString(conf, key)
|
|
}
|
|
|
|
func getConfigAsInt32(conf map[string]any, key string) int32 {
|
|
return maps.GetValueAsInt32(conf, key)
|
|
}
|
|
|
|
func getConfigAsInt64(conf map[string]any, key string) int64 {
|
|
return maps.GetValueAsInt64(conf, key)
|
|
}
|
|
|
|
func getConfigAsBool(conf map[string]any, key string) bool {
|
|
return maps.GetValueAsBool(conf, key)
|
|
}
|