title: How do i get values of elements in slice of interface?
body: <p>I have the following struct</p>
  <pre><code>type response struct {
          Symbols    []struct {
                  Status                     string   `json:&quot;status&quot;`
                  Symbol                     string   `json:&quot;symbol&quot;`
                  BaseAssetPrecision      int64  `json:&quot;baseAssetPrecision&quot;`
                  BaseCommissionPrecision int64  `json:&quot;baseCommissionPrecision&quot;`
                  Filters                 []struct {
                          FilterType string  `json:&quot;filterType&quot;`
                          MaxPrice   float64 `json:&quot;maxPrice,string&quot;`
                          MinPrice   float64 `json:&quot;minPrice,string&quot;`
                          TickSize   float64 `json:&quot;tickSize,string&quot;`
                  } `json:&quot;filters&quot;`
          } `json:&quot;symbols&quot;`
          Timezone string `json:&quot;timezone&quot;`
  }
  </code></pre>
  <p>I will like to iterate over response to get the values of certain elements deep into the struct</p>
  <ol>
  <li>How do i get the value of <code>Symbols =&gt; Symbol</code>?</li>
  <li>How do i get the value of <code>Symbols =&gt; Filters =&gt; MaxPrice</code>?</li>
  </ol>
  <p>I know <code>timezone</code> works fine but not sure how to get <code>symbol</code> and <code>maxPrice</code></p>
  <pre><code>var data []response
      
  for _, r := range data {
      fmt.Println(&quot;timezone: &quot;, r.Timezone)
      fmt.Println(&quot;symbol: &quot;, r.Symbols.Symbol) // how???
      fmt.Println(&quot;maxPrice: &quot;, r.Symbols.Filters.MaxPrice) // how???
  }
  </code></pre>
  <p>and looks something like this</p>
  <pre><code>{
      &quot;timezone&quot;: &quot;UTC&quot;,
      &quot;symbols&quot;: [{
              &quot;symbol&quot;: &quot;TESLA&quot;,
              &quot;status&quot;: &quot;TRADING&quot;,
              &quot;baseAssetPrecision&quot;: 8,
              &quot;baseCommissionPrecision&quot;: 8,
              &quot;filters&quot;: [{
                      &quot;filterType&quot;: &quot;PRICE_FILTER&quot;,
                      &quot;minPrice&quot;: &quot;0.00000100&quot;,
                      &quot;maxPrice&quot;: &quot;922327.00000000&quot;,
                      &quot;tickSize&quot;: &quot;0.00000100&quot;
                  },
                  {
                      &quot;filterType&quot;: &quot;PERCENT_PRICE&quot;,
                      &quot;multiplierUp&quot;: &quot;5&quot;,
                      &quot;multiplierDown&quot;: &quot;0.2&quot;,
                      &quot;avgPriceMins&quot;: 5
                  },
                  {
                      &quot;filterType&quot;: &quot;LOT_SIZE&quot;,
                      &quot;minQty&quot;: &quot;0.00010000&quot;,
                      &quot;maxQty&quot;: &quot;100000.00000000&quot;,
                      &quot;stepSize&quot;: &quot;0.00010000&quot;
                  },
                  {
                      &quot;filterType&quot;: &quot;MIN_NOTIONAL&quot;,
                      &quot;minNotional&quot;: &quot;0.00010000&quot;,
                      &quot;applyToMarket&quot;: true,
                      &quot;avgPriceMins&quot;: 5
                  },
                  {
                      &quot;filterType&quot;: &quot;ICEBERG_PARTS&quot;,
                      &quot;limit&quot;: 10
                  },
                  {
                      &quot;filterType&quot;: &quot;MARKET_LOT_SIZE&quot;,
                      &quot;minQty&quot;: &quot;0.00000000&quot;,
                      &quot;maxQty&quot;: &quot;891.04020423&quot;,
                      &quot;stepSize&quot;: &quot;0.00000000&quot;
                  },
                  {
                      &quot;filterType&quot;: &quot;MAX_NUM_ORDERS&quot;,
                      &quot;maxNumOrders&quot;: 200
                  },
                  {
                      &quot;filterType&quot;: &quot;MAX_NUM_ALGO_ORDERS&quot;,
                      &quot;maxNumAlgoOrders&quot;: 5
                  }
              ]
          },
          {
              &quot;symbol&quot;: &quot;AAPL&quot;,
              &quot;status&quot;: &quot;TRADING&quot;,
              &quot;baseAssetPrecision&quot;: 8,
              &quot;baseCommissionPrecision&quot;: 8,
              &quot;filters&quot;: [{
                      &quot;filterType&quot;: &quot;PRICE_FILTER&quot;,
                      &quot;minPrice&quot;: &quot;0.00000100&quot;,
                      &quot;maxPrice&quot;: &quot;922327.00000000&quot;,
                      &quot;tickSize&quot;: &quot;0.00000100&quot;
                  },
                  {
                      &quot;filterType&quot;: &quot;PERCENT_PRICE&quot;,
                      &quot;multiplierUp&quot;: &quot;5&quot;,
                      &quot;multiplierDown&quot;: &quot;0.2&quot;,
                      &quot;avgPriceMins&quot;: 5
                  },
                  {
                      &quot;filterType&quot;: &quot;LOT_SIZE&quot;,
                      &quot;minQty&quot;: &quot;0.00010000&quot;,
                      &quot;maxQty&quot;: &quot;100000.00000000&quot;,
                      &quot;stepSize&quot;: &quot;0.00010000&quot;
                  },
                  {
                      &quot;filterType&quot;: &quot;MIN_NOTIONAL&quot;,
                      &quot;minNotional&quot;: &quot;0.00010000&quot;,
                      &quot;applyToMarket&quot;: true,
                      &quot;avgPriceMins&quot;: 5
                  },
                  {
                      &quot;filterType&quot;: &quot;ICEBERG_PARTS&quot;,
                      &quot;limit&quot;: 10
                  },
                  {
                      &quot;filterType&quot;: &quot;MARKET_LOT_SIZE&quot;,
                      &quot;minQty&quot;: &quot;0.00000000&quot;,
                      &quot;maxQty&quot;: &quot;891.04020423&quot;,
                      &quot;stepSize&quot;: &quot;0.00000000&quot;
                  },
                  {
                      &quot;filterType&quot;: &quot;MAX_NUM_ORDERS&quot;,
                      &quot;maxNumOrders&quot;: 200
                  },
                  {
                      &quot;filterType&quot;: &quot;MAX_NUM_ALGO_ORDERS&quot;,
                      &quot;maxNumAlgoOrders&quot;: 5
                  }
              ]
          }
      ]
  }
  </code></pre>
  <p>How do i iterate over the</p>