1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-01-05 10:20:53 +02:00
go-micro/examples/config/modify
2021-01-20 21:28:48 +00:00
..
example.conf Add examples 2020-12-26 15:17:20 +00:00
modify.go examples at v3 2021-01-20 21:28:48 +00:00
README.md Add examples 2020-12-26 15:17:20 +00:00

Modify Config

This is an example of modifying config in a file.

Note: We currently only support setting values in memory, not passing down to the source.

Usage

  • example.conf is a toml file format
  • modify.go - loads, modifies and writes back the file
go run modify.go