Files
budget-backend/vendor/github.com/bytedance/sonic/internal/envs/decode.go
kratisto f8df24c29d
Some checks failed
golangci-lint / lint (push) Failing after 1m30s
Test / test (push) Failing after 2m17s
chore: migrate to gitea
2026-01-27 01:45:58 +01:00

24 lines
323 B
Go

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
}