MCPcopy Create free account
hub / github.com/LockGit/gochat / getCurrentDir

Function getCurrentDir

config/config.go:50–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func getCurrentDir() string {
51 _, fileName, _, _ := runtime.Caller(1)
52 aPath := strings.Split(fileName, "/")
53 dir := strings.Join(aPath[0:len(aPath)-1], "/")
54 return dir
55}
56
57func Init() {
58 once.Do(func() {

Callers 1

InitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected