MCPcopy Create free account
hub / github.com/MertJSX/folderhost / IsDevelopment

Function IsDevelopment

utils/is_development.go:8–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6)
7
8func IsDevelopment() bool {
9 if _, err := os.Stat("web/dist"); err == nil {
10 return false // that's for testing client build on server
11 }
12
13 if len(os.Args) > 0 && filepath.Base(os.Args[0]) == "main" {
14 return true
15 }
16
17 if _, err := os.Stat("web/src"); err == nil {
18 return true
19 }
20
21 return false
22}

Callers 1

mainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected