diff options
| author | dev | 2026-06-24 01:52:52 +0200 |
|---|---|---|
| committer | dev | 2026-06-24 01:52:52 +0200 |
| commit | 7af896fce4eac0579076aa15a3e987345dc9f9e8 (patch) | |
| tree | 2bbca47a18a4a4bee735d92cccf91d5ee307e498 /src/config.json.example | |
| parent | ae17ca2716cee24b9814a5e54c2349c115012d74 (diff) | |
| download | hnimdbbot-7af896fce4eac0579076aa15a3e987345dc9f9e8.tar.gz | |
feat: switch config to JSON; add go.mod and config.json.example
- Replace Viper-based config with encoding/json (config.go)
- Add config.json with sensible defaults (gitignored)
- Add config.json.example with empty values as reference
- Initialize go module (go.mod)
- Update main.go to use LoadConfig()
Diffstat (limited to 'src/config.json.example')
| -rw-r--r-- | src/config.json.example | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/config.json.example b/src/config.json.example new file mode 100644 index 0000000..125484b --- /dev/null +++ b/src/config.json.example @@ -0,0 +1,17 @@ +{ + "db_driver": "", + "db_dbname": "", + "db_host": "", + "db_port": "", + "db_user": "", + "db_password": "", + "db_options": "", + + "user_agent": "", + "delay": 0, + + "access_token": "", + "refresh_token": "", + + "debug": false +} |
