queuex

package
v0.0.0-...-6029cb0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonMarshaler

type JsonMarshaler[T any] struct {
	Data T
}

func NewJsonMarshaler

func NewJsonMarshaler[T any](data T) *JsonMarshaler[T]

func (*JsonMarshaler[T]) Marshal

func (j *JsonMarshaler[T]) Marshal() (string, error)

func (*JsonMarshaler[T]) Unmarshal

func (j *JsonMarshaler[T]) Unmarshal(content string) error

type Marshaler

type Marshaler interface {
	Marshal() (string, error)
	Unmarshal(string) error
}

type StringMarshaler

type StringMarshaler string

func (*StringMarshaler) Marshal

func (s *StringMarshaler) Marshal() (string, error)

func (*StringMarshaler) Unmarshal

func (s *StringMarshaler) Unmarshal(content string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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