We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 783a6b2 commit 6bc4656Copy full SHA for 6bc4656
internal/binary/index.go
@@ -40,7 +40,7 @@ const (
40
// Index contains details about all the binaries
41
// loaded in 'cloud-downloads'
42
type Index struct {
43
- Boards []IndexBoard
+ Boards []IndexBoard `json:"boards"`
44
}
45
46
// IndexBoard describes all the binaries available for a specific board
@@ -89,7 +89,7 @@ func LoadIndex() (*Index, error) {
89
90
91
i := &Index{}
92
- if err = json.Unmarshal(index, &i.Boards); err != nil {
+ if err = json.Unmarshal(index, &i); err != nil {
93
return nil, fmt.Errorf("cannot unmarshal index json: %w", err)
94
95
return i, nil
0 commit comments