Added STATIC_DIR

This commit is contained in:
2026-02-20 12:50:36 +08:00
parent f6c9e40540
commit 206448cc41
5 changed files with 17 additions and 14 deletions

View File

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