serializer

package
v0.0.0-...-0c778b9 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Serializer

type Serializer struct {
	Format format.Format
}

Serializer is the main serializer struct

func NewSerializer

func NewSerializer(format format.Format) *Serializer

NewSerializer creates a new instance of Serializer

func (*Serializer) Deserialize

func (s *Serializer) Deserialize(data string, obj any) error

func (*Serializer) DeserializeAndMerge

func (s *Serializer) DeserializeAndMerge(data string, target any) error

func (*Serializer) MergeObjects

func (s *Serializer) MergeObjects(target any, source any) error

func (*Serializer) Serialize

func (s *Serializer) Serialize(obj any, groups ...string) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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