go.mercari.io/datastore@v1.8.2/export.go (about) 1 package datastore 2 3 import ( 4 "encoding/gob" 5 "time" 6 ) 7 8 // LoadEntity to dst struct. 9 var LoadEntity = loadEntity 10 11 // SaveEntity convert key & struct to *Entity. 12 var SaveEntity = saveEntity 13 14 func init() { 15 gob.Register(time.Time{}) 16 gob.Register(&Entity{}) 17 gob.Register(GeoPoint{}) 18 gob.Register([]interface{}{}) 19 }