|
|
|
|
|
by arp242
1000 days ago
|
|
I've also used scopes for this: func DownloadAndVerifyThing(path string) error {
var url string
{ // Build URL
...
url = [..]
}
{ // Fetch
...
}
{ // Verify file.
...
}
}
I don't do this very often (and I'm having trouble locating an example off-hand, although I'm sure there must be a few in my public code), but it can be pretty useful at times. |
|
Then maybe better ways; suggestions welcome.