feat: debug api

This commit is contained in:
yusing
2025-04-13 06:17:41 +08:00
parent fdbf1ad787
commit 1eac48e899
8 changed files with 192 additions and 40 deletions

View File

@@ -18,9 +18,14 @@ import (
type SerializedObject = map[string]any
type MapUnmarshaller interface {
type (
MapMarshaller interface {
MarshalMap() map[string]any
}
MapUnmarshaller interface {
UnmarshalMap(m map[string]any) gperr.Error
}
)
var (
ErrInvalidType = gperr.New("invalid type")