Versions in this module Expand all Collapse all v0 v0.1.0 Aug 17, 2026 Changes in this version + func Clone[T any](v T) (T, error) + func Convert(from, to Format, data []byte) ([]byte, error) + func CopyJSON(v any) (any, error) + func DeepCopy[T any](v T) T + func FromJSONToTOML(data []byte) ([]byte, error) + func FromJSONToYAML(data []byte) ([]byte, error) + func FromTOMLToJSON(data []byte) ([]byte, error) + func FromTOMLToYAML(data []byte) ([]byte, error) + func FromYAMLToJSON(data []byte) ([]byte, error) + func FromYAMLToTOML(data []byte) ([]byte, error) + func JSONToMap(data []byte) (map[string]any, error) + func JSONToSlice(data []byte) ([]any, error) + func JSONToStruct(data []byte, v any) error + func Marshal(format Format, v any) ([]byte, error) + func MustMarshal(format Format, v any) []byte + func MustUnmarshal(format Format, data []byte, v any) + func StructToJSON(v any) ([]byte, error) + func StructToTOML(v any) ([]byte, error) + func StructToYAML(v any) ([]byte, error) + func TOMLToStruct(data []byte, v any) error + func ToBool(v any) (bool, error) + func ToDuration(v any) (time.Duration, error) + func ToFloat64(v any) (float64, error) + func ToInt(v any) (int, error) + func ToInt64(v any) (int64, error) + func ToMapStringAny(v any) (map[string]any, error) + func ToMapStringInt(v any) (map[string]int, error) + func ToMapStringString(v any) (map[string]string, error) + func ToSliceInt(v any) ([]int, error) + func ToSliceString(v any) ([]string, error) + func ToSlice[T any](v any) ([]T, error) + func ToString(v any) (string, error) + func ToUint(v any) (uint, error) + func Unmarshal(format Format, data []byte, v any) error + func YAMLToStruct(data []byte, v any) error + type Format string + const FormatJSON + const FormatTOML + const FormatYAML