Hello everyone, there is a small problem how to get the total price field 
from the Order structure?
type Order struct {
    OrderUID          string  `json:"order_uid"`
    Entry             string  `json:"entry"`
    InternalSignature string  `json:"internal_signature"`
    Payment           Payment `json:"payment"`
    Items             []Items `json:"items"`
    Locale            string  `json:"locale"`
    CustomerID        string  `json:"customer_id"`
    TrackNumber       string  `json:"track_number"`
    DeliveryService   string  `json:"delivery_service"`
    Shardkey          string  `json:"shardkey"`
    SmID              int     `json:"sm_id"`
} 
type Items struct {
    ChrtID     int    `json:"chrt_id"`
    Price      int    `json:"price"`
    Rid        string `json:"rid"`
    Name       string `json:"name"`
    Sale       int    `json:"sale"`
    Size       string `json:"size"`
    TotalPrice int    `json:"total_price"`
    NmID       int    `json:"nm_id"`
    Brand      string `json:"brand"`
}
Haven't seen yet that the type of nested structure is a slice 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/91afac2e-7e46-44c0-85ca-550294be2be6n%40googlegroups.com.

Reply via email to