Skip to content

Commit

Permalink
Cleanup: fix go tool vet warnning
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
HuKeping committed Jul 26, 2019
1 parent 0a70180 commit 6e757f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/example_struct/example_struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 6e757f6

Please sign in to comment.