This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 7
7
"log"
8
8
"os"
9
9
"runtime"
10
+ "strconv"
10
11
"syscall"
11
12
12
13
"github.com/sevlyar/go-daemon"
@@ -24,7 +25,7 @@ type Config struct {
24
25
NoReg bool `config:"noreg"`
25
26
Debug bool `config:"debug"`
26
27
Foreground bool `config:"foreground"`
27
- UseCORS bool `config:"cors"`
28
+ UseCORS bool `config:"cors" json:"cors" yaml:"cors" toml:"cors" `
28
29
}
29
30
30
31
var cfg = Config {
@@ -70,11 +71,17 @@ func main() {
70
71
flag .Parse ()
71
72
72
73
if * ver {
73
- fmt .Println (` Version: ` + Version + `
74
- Built: ` + BuildTime + `
75
- Go version: ` + runtime .Version () + `
76
- OS/Arch: ` + runtime .GOOS + "/" + runtime .GOARCH )
77
-
74
+ fmt .Println (` Version: ` + Version + `
75
+ Built: ` + BuildTime + `
76
+ Go Version: ` + runtime .Version () + `
77
+ OS/Arch: ` + runtime .GOOS + "/" + runtime .GOARCH + `
78
+ No Registrations: ` + strconv .FormatBool (cfg .NoReg ) + `
79
+ CORS Enabled: ` + strconv .FormatBool (cfg .UseCORS ) + `
80
+ Run in Foreground: ` + strconv .FormatBool (cfg .Foreground ) + `
81
+ Webserver Port: ` + strconv .Itoa (cfg .Port ) + `
82
+ CORS Enabled: ` + strconv .FormatBool (cfg .UseCORS ) + `
83
+ DB Path: ` + cfg .DB + `
84
+ Debug: ` + strconv .FormatBool (cfg .Debug ))
78
85
return
79
86
}
80
87
You can’t perform that action at this time.
0 commit comments