2020-03-10 05:22:22 +00:00
|
|
|
package balance
|
|
|
|
|
|
|
|
import "runtime"
|
|
|
|
|
|
|
|
// Runtime environment settings.
|
2020-06-05 04:55:54 +00:00
|
|
|
var (
|
|
|
|
Runtime rtc
|
|
|
|
|
|
|
|
GuidebookPath = "./guidebook/index.html"
|
|
|
|
)
|
2020-03-10 05:22:22 +00:00
|
|
|
|
|
|
|
type rtc struct {
|
|
|
|
Platform platform
|
|
|
|
Arch string
|
|
|
|
}
|
|
|
|
|
|
|
|
// Platform type the app was built for.
|
|
|
|
type platform string
|
|
|
|
|
|
|
|
// Runtime.Platform constants.
|
|
|
|
const (
|
|
|
|
Linux platform = "linux"
|
|
|
|
Windows platform = "windows"
|
|
|
|
Darwin platform = "darwin"
|
|
|
|
Web platform = "web"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
Runtime = rtc{
|
|
|
|
Platform: platform(runtime.GOOS),
|
|
|
|
Arch: runtime.GOARCH,
|
|
|
|
}
|
|
|
|
}
|