Versions in this module Expand all Collapse all v2 v2.2.5 Apr 25, 2025 v2.2.4 Apr 22, 2025 v2.2.3 Apr 22, 2025 Changes in this version + type WithJSON struct + Data T + func NewWrapper[T any](data T) *WithJSON[T] + func (w *WithJSON[T]) Clone(empty bool) Wrapper[T] + func (w *WithJSON[T]) Get() T + func (w *WithJSON[T]) MarshalJSON() ([]byte, error) + func (w *WithJSON[T]) Set(data T) + func (w *WithJSON[T]) UnmarshalJSON(data []byte) error + type Wrapper interface + Clone func(bool) Wrapper[T] + Get func() T + MarshalJSON func() ([]byte, error) + Set func(data T) + UnmarshalJSON func([]byte) error