Versions in this module Expand all Collapse all v0 v0.1.0 Jul 15, 2026 Changes in this version + var ErrUnsupportedType = errors.New("phpserialize: unsupported type") + func Decode(v Value, dst any) error + func Marshal(v any) ([]byte, error) + func Unmarshal(data []byte, v any) error + func Write(v Value) ([]byte, error) + type Entry struct + Key Value + Value Value + type Field struct + Name string + Value Value + type InvalidUnmarshalError struct + Type reflect.Type + func (e *InvalidUnmarshalError) Error() string + type Kind uint8 + const ArrayKind + const BoolKind + const FloatKind + const IntKind + const NullKind + const ObjectKind + const StringKind + func (k Kind) String() string + type Object struct + ClassName string + Fields []Field + type PHPClass interface + PHPClassName func() string + type SyntaxError struct + Offset int64 + func (e *SyntaxError) Error() string + type UnmarshalTypeError struct + Field string + Type reflect.Type + Value string + func (e *UnmarshalTypeError) Error() string + type UnsupportedTypeError struct + Type reflect.Type + func (e *UnsupportedTypeError) Error() string + type UnsupportedValueError struct + Str string + Value reflect.Value + func (e *UnsupportedValueError) Error() string + type Value struct + Array []Entry + Bool bool + Float float64 + Int int64 + Kind Kind + Object *Object + String string + func Bool(b bool) Value + func Encode(v any) (Value, error) + func Float(f float64) Value + func Int(i int64) Value + func Null() Value + func Parse(data []byte) (Value, error) + func String(s string) Value + func (v Value) Equal(other Value) bool