Handle unmarshal array
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 1m2s

This commit is contained in:
Alexandre Bruyant 2024-01-07 20:18:22 +01:00
parent 5eba7a1634
commit 27894f8ff0

View File

@ -166,6 +166,9 @@ func main() {
var ipfsAddResponse []AddResponse var ipfsAddResponse []AddResponse
json.Unmarshal(resBody, &ipfsAddResponse) json.Unmarshal(resBody, &ipfsAddResponse)
if err != nil {
githubactions.Fatalf(err.Error())
}
githubactions.Infof("Response: %v", ipfsAddResponse) githubactions.Infof("Response: %v", ipfsAddResponse)
} }