mirror of
https://github.com/kataras/iris.git
synced 2026-01-05 19:27:05 +00:00
Update to 5.0.4 - Read HISTORY.md
This commit is contained in:
15
iris/fs.go
15
iris/fs.go
@@ -7,21 +7,6 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
var workingDir string
|
||||
|
||||
func getWorkingDir() string {
|
||||
if workingDir == "" {
|
||||
errUnableToGetWD := errors.New(Name + ": Unable to get working directory, %s")
|
||||
// set the current working dir
|
||||
d, err := os.Getwd()
|
||||
if err != nil {
|
||||
panic(errUnableToGetWD.Format(err))
|
||||
}
|
||||
workingDir = d
|
||||
}
|
||||
return workingDir
|
||||
}
|
||||
|
||||
var goPath string
|
||||
|
||||
// returns the (last) gopath+"/src/"
|
||||
|
||||
Reference in New Issue
Block a user