@@ -9,16 +9,16 @@ import (
99 "strings"
1010)
1111
12- // Serializer defines the interface for pluggable serializers.
12+ // serializer defines the interface for pluggable serializers.
1313// Encode and Decode are called during database storage and retrieval respectively.
14- type Serializer interface {
14+ type serializer interface {
1515 // Encode serializes data to a string for database storage
1616 Encode (data any ) (string , error )
1717 // Decode deserializes data from a string
1818 Decode (data * string ) (any , error )
1919}
2020
21- func isGobSerializer (s Serializer ) bool {
21+ func isGobSerializer (s serializer ) bool {
2222 _ , ok := s .(* GobSerializer )
2323 return ok
2424}
@@ -57,7 +57,7 @@ func init() {
5757 safeGobRegister (gobValue {})
5858}
5959
60- // GobSerializer implements Serializer using encoding/gob
60+ // GobSerializer implements serializer using encoding/gob
6161type GobSerializer struct {}
6262
6363func NewGobSerializer () * GobSerializer {
@@ -108,7 +108,7 @@ func (g *GobSerializer) Decode(data *string) (any, error) {
108108}
109109
110110// deserialize decodes an encoded string directly into a typed variable.
111- func deserialize [T any ](serializer Serializer , encoded * string ) (T , error ) {
111+ func deserialize [T any ](serializer serializer , encoded * string ) (T , error ) {
112112 var zero T
113113
114114 if serializer == nil {
0 commit comments