mirror of
https://github.com/spf13/viper
synced 2025-05-07 20:57:18 +00:00
update viper.go
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
parent
6c4d359745
commit
fefe35c98f
1 changed files with 2 additions and 0 deletions
2
viper.go
2
viper.go
|
@ -423,6 +423,8 @@ var SupportedRemoteProviders = []string{"etcd", "etcd3", "consul", "firestore"}
|
|||
|
||||
// OnConfigChange sets the event handler that is called when a config file changes.
|
||||
func OnConfigChange(run func(in fsnotify.Event)) { v.OnConfigChange(run) }
|
||||
|
||||
// OnConfigChange sets the event handler that is called when a config file changes.
|
||||
func (v *Viper) OnConfigChange(run func(in fsnotify.Event)) {
|
||||
v.onConfigChange = run
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue