Skip to content

Commit 89af207

Browse files
committed
renamed safestrings to stringutils
1 parent 6f381c7 commit 89af207

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/safestrings/safestrings.go renamed to utils/stringutils/stringutils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ import (
55
"strconv"
66
"strings"
77

8-
"github.com/codeshelldev/secured-signal-api/utils"
8+
jsonutils "github.com/codeshelldev/secured-signal-api/utils/jsonutils"
99
)
1010

1111
func ToType(str string) any {
1212
cleaned := strings.TrimSpace(str)
1313

1414
//* Try JSON
1515
if IsEnclosedBy(cleaned, `[`, `]`) || IsEnclosedBy(cleaned, `{`, `}`) {
16-
data, err := utils.GetJsonSafe[any](str)
16+
data, err := jsonutils.GetJsonSafe[any](str)
1717

1818
if data != nil && err == nil {
1919
return data

0 commit comments

Comments
 (0)