summaryrefslogtreecommitdiff
path: root/flat.go
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2025-03-15 20:44:38 +0000
committerDmitry Ilvokhin <d@ilvokhin.com>2025-03-15 20:44:38 +0000
commitbbf5d9d99aa6131dccada8908b770ac10f52be59 (patch)
tree9497ef07375a0cefc7a5814df5f1e2078cc8e4c9 /flat.go
parent5e1371457efa7f36913413eb4bc2cd045123f4de (diff)
downloadflatbot-bbf5d9d99aa6131dccada8908b770ac10f52be59.tar.gz
flatbot-bbf5d9d99aa6131dccada8908b770ac10f52be59.tar.bz2
flatbot-bbf5d9d99aa6131dccada8908b770ac10f52be59.zip
Annotate `flat` fileds for JSON
Diffstat (limited to 'flat.go')
-rw-r--r--flat.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/flat.go b/flat.go
index a655856..5f22009 100644
--- a/flat.go
+++ b/flat.go
@@ -6,8 +6,8 @@ import (
)
type flat struct {
- ID int
- Price string
+ ID int `json:"id"`
+ Price string `json:"price"`
}
func (f *flat) URL() string {