chore: fix import and err marshal handling

This commit is contained in:
yusing 2025-04-16 14:44:31 +08:00
parent feb9947543
commit 54e4969d26
2 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,7 @@ import (
"errors"
"fmt"
"github.com/yusing/go-proxy/pkg/json"
stdJSON "encoding/json"
)
func newError(message string) error {
@ -73,7 +73,7 @@ func IsJSONMarshallable(err error) bool {
case *baseError:
return IsJSONMarshallable(err.Err)
default:
var v json.Marshaler
var v stdJSON.Marshaler
return errors.As(err, &v)
}
}

View file

@ -1,4 +1,4 @@
package types
package gpnet
import (
"fmt"