mirror of
https://github.com/taigrr/jety.git
synced 2026-04-01 19:08:58 -07:00
refactor(api)!: remove Delete method from public API
Environment variables are unaffected by Delete, making it misleading — callers would expect a key to be fully gone but env vars would still resolve. Sub is the better abstraction for scoped config.
This commit is contained in:
@@ -88,10 +88,6 @@ func SetString(key string, value string) {
|
||||
defaultConfigManager.SetString(key, value)
|
||||
}
|
||||
|
||||
func Delete(key string) {
|
||||
defaultConfigManager.Delete(key)
|
||||
}
|
||||
|
||||
func Sub(key string) *ConfigManager {
|
||||
return defaultConfigManager.Sub(key)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user