index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
internal
/
setting
/
computed.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'internal/setting/computed.go')
-rw-r--r--
internal/setting/computed.go
12
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/setting/computed.go b/internal/setting/computed.go
new file mode 100644
index 00000000..7bdee053
--- /dev/null
+++ b/
internal/setting/computed.go
@@ -0,0 +1,12 @@
+// Copyright 2020 The Gogs Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
+package setting
+
+var supportWindowsService bool
+
+// SupportWindowsService returns true if running as Windows Service is supported.
+func SupportWindowsService() bool {
+ return supportWindowsService
+}