From 7af896fce4eac0579076aa15a3e987345dc9f9e8 Mon Sep 17 00:00:00 2001 From: dev Date: Wed, 24 Jun 2026 01:52:52 +0200 Subject: 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() --- src/config.json.example | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/config.json.example (limited to 'src/config.json.example') 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 +} -- cgit v1.2.3