diff options
| author | Dmitry Ilvokhin <d@ilvokhin.com> | 2025-03-15 20:44:38 +0000 |
|---|---|---|
| committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2025-03-15 20:44:38 +0000 |
| commit | bbf5d9d99aa6131dccada8908b770ac10f52be59 (patch) | |
| tree | 9497ef07375a0cefc7a5814df5f1e2078cc8e4c9 /flat.go | |
| parent | 5e1371457efa7f36913413eb4bc2cd045123f4de (diff) | |
| download | flatbot-bbf5d9d99aa6131dccada8908b770ac10f52be59.tar.gz flatbot-bbf5d9d99aa6131dccada8908b770ac10f52be59.tar.bz2 flatbot-bbf5d9d99aa6131dccada8908b770ac10f52be59.zip | |
Annotate `flat` fileds for JSON
Diffstat (limited to 'flat.go')
| -rw-r--r-- | flat.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |