mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-03-30 08:53:51 +00:00
- Apply canonical Go formatting to all .go files - No functional changes; whitespace/import/struct layout only - Improves consistency, reduces diff noise, and aligns with standard tooling
18 lines
283 B
Go
18 lines
283 B
Go
package ratio_setting
|
|
|
|
import "sync/atomic"
|
|
|
|
var exposeRatioEnabled atomic.Bool
|
|
|
|
func init() {
|
|
exposeRatioEnabled.Store(false)
|
|
}
|
|
|
|
func SetExposeRatioEnabled(enabled bool) {
|
|
exposeRatioEnabled.Store(enabled)
|
|
}
|
|
|
|
func IsExposeRatioEnabled() bool {
|
|
return exposeRatioEnabled.Load()
|
|
}
|