Skip to content

Commit 5f8470f

Browse files
committed
adding omitempty to town and type
so if mapping fails, they are now displayed
1 parent 180836e commit 5f8470f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TibiaHousesHouseV3.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ type HouseStatus struct {
4444
type House struct {
4545
Houseid int `json:"houseid"`
4646
World string `json:"world"`
47-
Town string `json:"town"`
47+
Town string `json:"town,omitempty"`
4848
Name string `json:"name"`
49-
Type string `json:"type"`
49+
Type string `json:"type,omitempty"`
5050
Beds int `json:"beds"`
5151
Size int `json:"size"`
5252
Rent int `json:"rent"`

0 commit comments

Comments
 (0)