Skip to content

Commit

Permalink
Omitempty for key in customer detail
Browse files Browse the repository at this point in the history
  • Loading branch information
Arman committed Aug 6, 2018
1 parent 3db2741 commit 7915ed8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ type CustAddress struct {
// CustDetail : Represent the customer detail
type CustDetail struct {
// first name
FName string `json:"first_name"`
FName string `json:"first_name,omitempty"`

// last name
LName string `json:"last_name"`
LName string `json:"last_name,omitempty"`

Email string `json:"email"`
Phone string `json:"phone"`
Email string `json:"email,omitempty"`
Phone string `json:"phone,omitempty"`
BillAddr *CustAddress `json:"billing_address,omitempty"`
ShipAddr *CustAddress `json:"customer_address,omitempty"`
}
Expand Down

0 comments on commit 7915ed8

Please sign in to comment.