проверял на следующих урлах ./gowget "http://ipv4.download.thinkbroadband.com/5MB.zip" "http://ipv4.download.thinkbroadband.com/10MB.zip" "https://geometrian.com/data/programming/projects/glLib/glLib%20Reloaded%200.5.9/0.5.9.zip" "http://h.hiphotos.baidu.com/image/pic/item/e1fe9925bc315c60cb71c4748fb1cb1348547741.jpg" "http://foo.com/foo1.zip" "http://bar.com/bar1.zip" "http://foo.com/foo2.zip" "http://bar.com/bar2.zip" > result.log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/json" | |
| "testing" | |
| ) | |
| type foo struct { | |
| ID string `json:"_id"` | |
| Index int `json:"index"` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Quick start | |
| # Dependency Management | |
| go get -d github.com/path/to/module # add or upgrade dep | |
| go get -d github.com/dep/two/[email protected] # use specific version | |
| go get -d github.com/dep/commit@branch # use specific branch | |
| go get -d -u ./... # upgrade all modules used in subdirs | |
| go get -d github.com/dep/legacy@none # remove dep | |
| # Useful commands |