Files
upstream-traggo/config/mode/mode.go
upstream-mirror cda7c1a474
Some checks failed
build / build (push) Failing after 3s
snapshot of https://github.com/traggo/server.git (master, 2026-09-16; blobs > 131072B omitted)
2026-09-16 05:24:45 +05:00

21 lines
267 B
Go

package mode
const (
// Dev for development mode
Dev = "dev"
// Prod for production mode
Prod = "prod"
)
var mode = Dev
// Set sets the new mode.
func Set(newMode string) {
mode = newMode
}
// Get returns the current mode.
func Get() string {
return mode
}