package
0.0.0-20240827060135-362d4481321c
Repository: https://github.com/shenghuofei/goexample.git
Documentation: pkg.go.dev

# README

动态加载配置文件实例

测试

  1. 启动程序,会输出当前配置文件内容
  2. 修改配置文件内容,并执行kill -31 $pid,程序会重新加载新的配置文件,观察输出是否跟新配置文件一致
  3. kill -15 $pid(或者在程序运行终端执行ctrl+c)结束程序