From 6e757f632f77d13fb2d0bfcf9fcd2199b9c9a638 Mon Sep 17 00:00:00 2001 From: h00283522 Date: Fri, 26 Jul 2019 18:27:01 +0800 Subject: [PATCH] Cleanup: fix go tool vet warnning go tool vet complains: struct field tag `json:"id",omitempty` not compatible with reflect.StructTag.Get: bad syntax for struct tag pair Signed-off-by: Hu Keping --- example/example_struct/example_struct.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/example_struct/example_struct.go b/example/example_struct/example_struct.go index efc0a2c..62b2fff 100644 --- a/example/example_struct/example_struct.go +++ b/example/example_struct/example_struct.go @@ -12,7 +12,7 @@ import ( type Var struct { Expiry time.Time `json:"expiry,omitempty"` - ID string `json:"id",omitempty` + ID string `json:"id,omitempty"` } // We will order the node by `Time`