[PR #343] [CLOSED] Refactor config package to use viper library #4711

Closed
opened 2026-10-31 20:42:10 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/343
Author: @kaveh-ahangar
Created: 5/5/2023
Status: ❌ Closed

Base: main ← Head: add-viper


📝 Commits (1)

  • a8d030b Refactor config package to use viper library

📊 Changes

4 files changed (+462 additions, -6 deletions)

View changed files

➕ config.yaml.example (+13 -0)
📝 config/config.go (+18 -5)
📝 go.mod (+10 -0)
📝 go.sum (+421 -1)

📄 Description

Using a configuration file is beneficial for our application in the future because it makes settings easier to manage, allows us to switch between environments


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/343 **Author:** [@kaveh-ahangar](https://github.com/kaveh-ahangar) **Created:** 5/5/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `add-viper` --- ### 📝 Commits (1) - [`a8d030b`](https://github.com/MHSanaei/3x-ui/commit/a8d030b7a57ce48c3217668cd9acdd7a416e30cc) **Refactor config package to use viper library** ### 📊 Changes **4 files changed** (+462 additions, -6 deletions) <details> <summary>View changed files</summary> ➕ `config.yaml.example` (+13 -0) 📝 `config/config.go` (+18 -5) 📝 `go.mod` (+10 -0) 📝 `go.sum` (+421 -1) </details> ### 📄 Description Using a configuration file is beneficial for our application in the future because it makes settings easier to manage, allows us to switch between environments --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:42:10 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#4711
No description provided.