Remove erroneous ,string struct tag

The JSON encoder was very upset with the ,string struct tag option. It
spat out the error:

json: invalid use of ,string struct tag, trying to unmarshal
"18aed9a7-dc83-406e-a4dc-40d53049541a" into string

The documentation appears to be incomplete on this struct tag option,
and removing it fixes this error.
pull/297/head
Tim Raymond 2016-10-28 19:08:05 -04:00
parent faf2ac7685
commit 88f7815b65
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ type Cell struct {
// Layout is a collection of Cells for visualization
type Layout struct {
ID string `json:"id,string"`
ID string `json:"id"`
Application string `json:"app"`
Measurement string `json:"measurement"`
Cells []Cell `json:"cells"`