gitlab.com/evatix-go/core@v1.3.55/codestack/CurrentFilePath.go (about) 1 package codestack 2 3 import ( 4 "runtime" 5 6 "gitlab.com/evatix-go/core/constants" 7 ) 8 9 func CurrentFilePath() string { 10 _, filePath, _, isOkay := runtime.Caller(defaultInternalSkip) 11 12 if isOkay { 13 return filePath 14 } 15 16 return constants.EmptyString 17 }