fix: fix issue #274

This commit is contained in:
dudaodong committed 2024-12-02 17:06:06 +08:00
1 parent 7fb49515ce
commit 3cd546d7f2
8 files changed
+354 -377

No files matched your search

+1 -2
View File
@@ -20,7 +20,6 @@ import (
"strings"
"github.com/duke-git/lancet/v2/structs"
"golang.org/x/exp/constraints"
"golang.org/x/text/encoding/simplifiedchinese"
"golang.org/x/text/transform"
)
@@ -488,7 +487,7 @@ func ToRawUrlBase64(value any) string {
// ToBigInt converts an integer of any supported type (int, int64, uint64, etc.) to *big.Int
// Play: todo
func ToBigInt[T constraints.Integer](v T) (*big.Int, error) {
func ToBigInt[T any](v T) (*big.Int, error) {
result := new(big.Int)
switch v := any(v).(type) {