golifehk/utils/env.go

17 lines
426 B
Go
Raw Normal View History

2022-09-13 13:42:51 +00:00
package utils
import (
"bytes"
"os"
"path/filepath"
)
var WORKDIR string = TryGetEnv( "GOLIFEHK_WORKDIR", filepath.Join( os.TempDir(), "golifehk" ) )
var BOM string = bytes.NewBuffer([]byte{ 0xEF, 0xBB, 0xBF }).String()
2022-09-16 22:42:49 +00:00
var POWER_NUMBERS map[string] string = map[string] string {
"0": "⁰", "1": "¹", "2": "²", "3": "³",
"4": "⁴", "5": "⁵", "6": "⁶", "7": "⁷",
"8": "⁸", "9": "⁹",
}