Handle unmarshal array
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 1m2s
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 1m2s
This commit is contained in:
parent
5eba7a1634
commit
27894f8ff0
3
main.go
3
main.go
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user