using errors instead of fmt

This commit is contained in:
Pratham Gadkari 2025-11-30 16:01:27 +05:30
parent ee1f501d4a
commit 6b6ac46ae3

View File

@ -7,7 +7,6 @@ package binding
import ( import (
"encoding/hex" "encoding/hex"
"errors" "errors"
"fmt"
"mime/multipart" "mime/multipart"
"reflect" "reflect"
"strconv" "strconv"
@ -739,7 +738,7 @@ func TestTrySetCustomIntegration(t *testing.T) {
type badCustom struct{} type badCustom struct{}
func (b *badCustom) UnmarshalParam(s string) error { func (b *badCustom) UnmarshalParam(s string) error {
return fmt.Errorf("boom") return errors.New("boom")
} }
func TestTrySetCustomError(t *testing.T) { func TestTrySetCustomError(t *testing.T) {