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 StringMarshaler ¶
type StringMarshaler string
func (*StringMarshaler) Marshal ¶
func (s *StringMarshaler) Marshal() (string, error)
func (*StringMarshaler) Unmarshal ¶
func (s *StringMarshaler) Unmarshal(content string) error
Click to show internal directories.
Click to hide internal directories.