package main
import (
  "fmt"
  "net/http"
  "io"
)
func main() {
  url := "https://solana-gateway.moralis.io/account/mainnet/kXB7FfzdrfZpAZEW3TZcp8a8CwQbsowa6BdfAHZ4gVs/tokens?excludeSpam=true"
  req, _ := http.NewRequest("GET", url, payload)
  req.Header.Add("Accept", "application/json")
  req.Header.Add("X-API-Key", "YOUR_API_KEY")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := io.ReadAll(res.Body)
  fmt.Println(res)
  fmt.Println(string(body))
}