diff --git a/graph/primarykey.go b/graph/primarykey.go index 5332a8f..59f0198 100644 --- a/graph/primarykey.go +++ b/graph/primarykey.go @@ -15,12 +15,13 @@ package graph import ( - "code.google.com/p/go-uuid/uuid" "encoding/json" "errors" - "github.com/barakmich/glog" "strconv" "sync" + + "code.google.com/p/go-uuid/uuid" + "github.com/barakmich/glog" ) type primaryKeyType uint8 @@ -116,9 +117,6 @@ func (p PrimaryKey) MarshalJSON() ([]byte, error) { } } -//To avoid recursion in the implmentation of the UnmarshalJSON interface below -type primaryKey PrimaryKey - func (p *PrimaryKey) UnmarshalJSON(bytes []byte) error { if bytes[0] == '"' { switch bytes[1] {