mirror of
https://github.com/kataras/iris.git
synced 2026-01-06 03:27:27 +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/"
|
||||
|
||||
@@ -7,9 +7,8 @@ import (
|
||||
|
||||
var (
|
||||
// Name the name of the cmd tool
|
||||
Name = "Iris Command Line Tool"
|
||||
app *cli.App
|
||||
defaultInstallDir string
|
||||
Name = "Iris Command Line Tool"
|
||||
app *cli.App
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
Reference in New Issue
Block a user