Initial commit

This commit is contained in:
2022-09-13 21:42:51 +08:00
committed by Penguin Tsang
commit 7e327abbae
14 changed files with 474 additions and 0 deletions

12
utils/env.go Normal file
View File

@@ -0,0 +1,12 @@
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()
const ROUTE_CHARS string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-"