settings section

This commit is contained in:
guwandyk committed 2026-07-04 18:34:30 +05:00
1 parent bbe5d219ad
commit 0c717101da
2867 files changed
+1118596 -1

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
package envs
import (
"os"
)
var UseOptDec = os.Getenv("SONIC_USE_OPTDEC") == "1"
var UseFastMap = os.Getenv("SONIC_USE_FASTMAP") == "1"
func EnableOptDec() {
UseOptDec = true
}
func DisableOptDec() {
UseOptDec = false
}
func EnableFastMap() {
UseFastMap = true
}
func DisableFastMap() {
UseFastMap = false
}