79534996

Date: 2025-03-25 22:33:50
Score: 3.5
Natty:
Report link

Why are you not simply defining Quotes as a map of key: Stock ?

type Stock struct {
    ID    string `json:"id"`
    Quote struct {
        USD struct {
            Price float64 `json:"price"`
        } `json:"USD"`
    } `json:"quote"`
}

type Quotes struct {
    Data map[string]Stock `json:"data"`
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Why are you not
  • Low reputation (1):
Posted by: jguillaumeso