Skip to main content
spelling of artifact
Source Link
chicks
  • 2.9k
  • 3
  • 18
  • 30

Download artefactsartifacts using HTTP

The public code is SaveAsFile(). It takes a URL, checksum and authentication info, and downloads the artefactartifact and its hash using HTTP. It saves the content as a file and returns the file's path on success, otherwise an error.

Download artefacts using HTTP

The public code is SaveAsFile(). It takes a URL, checksum and authentication info, and downloads the artefact and its hash HTTP. It saves the content as a file and returns the file's path on success, otherwise an error.

Download artifacts using HTTP

The public code is SaveAsFile(). It takes a URL, checksum and authentication info, and downloads the artifact and its hash using HTTP. It saves the content as a file and returns the file's path on success, otherwise an error.

Tweeted twitter.com/StackCodeReview/status/1494053999149998081
Became Hot Network Question
Don't repeat tags in the title
Link
Toby Speight
  • 81.8k
  • 14
  • 101
  • 309

Go- Download artefacts using httpHTTP

edited body
Source Link
Alberto
  • 173
  • 4

As I'm fairly new to Go I would like to get some feedback on the error handling and on any ways to write this code more elegantly.?

As I'm fairly new to Go I would like to get some feedback on the error handling and on any ways to write this code more elegantly.

As I'm fairly new to Go I would like to get some feedback on the error handling and on any ways to write this code more elegantly?

edited title
Link
Alberto
  • 173
  • 4
Loading
Copy-edit
Source Link
Toby Speight
  • 81.8k
  • 14
  • 101
  • 309
Loading
Source Link
Alberto
  • 173
  • 4
Loading