Open
Description
如题,配置在变更后,如何监听??在 配置管理 中似乎没有找到监听配置变动回调,
是否可以提供类似 viper#watching-and-re-reading-config-files 监听配置变动回调??重新赋值新值到 struct 中
配置都被映射到 struct 中,在配置发生变更时,需要更新一些业务配置,而无需重启服务,业务即可读取新的 struct 中的字段值
1. What version of Go
and system type/arch are you using?
# -> % go version
go version go1.21.3 darwin/amd64
2. What version of GoFrame
are you using?
# -> % gf version
GoFrame CLI Tool v2.5.6, https://goframe.org
GoFrame Version: v2.5.6 in current go.mod
3. Can this issue be re-produced with the latest release?
是的