mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-21 03:48:46 +08:00

* refactor(cmd): use std `runtime` package to get go version info - Remove the `GoVersion` variable. - Remove overriding `GoVersion` by ldflags in `build.sh`. - Get go version, OS and arch from the constants in the std `runtime` package instead of compile time. * chore(ci): remove `GoVersion` flag from workflows Remove GoVersion flag from beta_release.yml and build.yml workflows. > Reduce compile-time dependencies.
34 lines
464 B
Go
34 lines
464 B
Go
package conf
|
|
|
|
import (
|
|
"net/url"
|
|
"regexp"
|
|
)
|
|
|
|
var (
|
|
BuiltAt string
|
|
GitAuthor string
|
|
GitCommit string
|
|
Version string = "dev"
|
|
WebVersion string
|
|
)
|
|
|
|
var (
|
|
Conf *Config
|
|
URL *url.URL
|
|
)
|
|
|
|
var SlicesMap = make(map[string][]string)
|
|
var FilenameCharMap = make(map[string]string)
|
|
var PrivacyReg []*regexp.Regexp
|
|
|
|
var (
|
|
// StoragesLoaded loaded success if empty
|
|
StoragesLoaded = false
|
|
)
|
|
var (
|
|
RawIndexHtml string
|
|
ManageHtml string
|
|
IndexHtml string
|
|
)
|