1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-10 05:25:58 +00:00

Update Iris tool to v.0.0.4 - Install dir now is based on $GOPATH/src

This commit is contained in:
Makis Maropoulos
2016-06-07 12:21:40 +03:00
parent 26f13cf5bf
commit 0e05c68876
3 changed files with 48 additions and 22 deletions

View File

@@ -33,6 +33,9 @@ func DownloadZip(zipURL string, newDir string) (string, error) {
var err error
var size int64
finish := make(chan bool)
defer func() {
finish <- true
}()
go func() {
print("\n|")
@@ -90,7 +93,8 @@ func DownloadZip(zipURL string, newDir string) (string, error) {
return "", ErrFileCopy.Format(err.Error())
}
finish <- true
print("OK ", size, " bytes downloaded") //we keep that here so developer will always see in the terminal if a plugin downloads something
_ = size
//print("OK ", size, " bytes downloaded") //we keep that here so developer will always see in the terminal if a plugin downloads something or no ?
return fileName, nil
}