Changes
2 changed files (+8/-0)
-
-
@@ -7,6 +7,10 @@ import ("time" ) func GobDecode(data []byte) (Item, error) { return gobDecodeItem(data) } func gobDecodeUint(i *uint, data []byte) error { g := gob.NewDecoder(bytes.NewReader(data)) return g.Decode(i)
-
-
-
@@ -5,6 +5,10 @@ import ("encoding/gob" ) func GobEncode(it Item) ([]byte, error) { return gobEncodeItem(it) } // TODO(marius): when migrating to go1.18, use a numeric constraint for this func gobEncodeInt64(i int64) ([]byte, error) { b := bytes.Buffer{}
-