From 78bb3d999c5d1016dc83e97501fae208c7b83b0c Mon Sep 17 00:00:00 2001 From: Baitinq Date: Mon, 19 Aug 2024 20:18:49 +0200 Subject: Misc: Serialize file to json in lowercase --- lib/model.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/model.go b/lib/model.go index c8538fa..bd45f87 100644 --- a/lib/model.go +++ b/lib/model.go @@ -3,9 +3,9 @@ package lib import "time" type File struct { - Id string `db:"id"` - User_id string `db:"user_id"` - Absolute_path string `db:"absolute_path"` - Contents string `db:"contents"` - Timestamp time.Time `db:"timestamp"` + Id string `db:"id" json:"id"` + User_id string `db:"user_id" json:"user_id"` + Absolute_path string `db:"absolute_path" json:"absolute_path"` + Contents string `db:"contents" json:"contents"` + Timestamp time.Time `db:"timestamp" json:"timestamp"` } -- cgit 1.4.1