Skip to content

Commit

Permalink
changing TrimBadging from string to NullString
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasehlert committed Feb 15, 2021
1 parent 9e063e3 commit 5135acd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/TeslaMateAPICars.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ func TeslaMateAPICars() (string, bool) {
// creating structs for /cars
// CarDetails struct - child of Cars
type CarDetails struct {
EID int64 `json:"eid"` // bigint
VID int64 `json:"vid"` // bigint
Vin string `json:"vin"` // text
Model string `json:"model"` // character varying(255)
TrimBadging string `json:"trim_badging"` // text
Efficiency float64 `json:"efficiency"` // double precision
EID int64 `json:"eid"` // bigint
VID int64 `json:"vid"` // bigint
Vin string `json:"vin"` // text
Model string `json:"model"` // character varying(255)
TrimBadging NullString `json:"trim_badging"` // text
Efficiency float64 `json:"efficiency"` // double precision
}
// CarExterior struct - child of Cars
type CarExterior struct {
Expand Down

0 comments on commit 5135acd

Please sign in to comment.