serializable

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeserializableIfc

type DeserializableIfc interface {
	Deserialize(data *string) error
}

Restore the state of an instance variable/struct from a string that was stored

type SerializableIfc

type SerializableIfc interface {
	Serialize() (*string, error)
}

Capture the state of an instance variable/struct as a string that can be stored

type Serializer

type Serializer struct {
	// contains filtered or unexported fields
}

func NewSerializer

func NewSerializer(transcoder xc.TranscoderIfc) *Serializer

func (Serializer) Deserialize

func (r Serializer) Deserialize(data *string) (*string, error)

func (Serializer) Serialize

func (r Serializer) Serialize(data *string, typeName string) (*string, error)

type SerializerIfc

type SerializerIfc interface {
	Serialize(data *string, typeName string) (*string, error)
	Deserialize(data *string) (*string, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL