This commit is contained in:
2026-02-16 22:39:36 +03:00
parent 66f529a998
commit 598bc24b3a
4 changed files with 73 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ package utils
import (
"fmt"
"math/rand/v2"
"reflect"
"strconv"
)
@@ -54,3 +55,7 @@ func StringToInt(s string) int {
func AnyToString[A any](a A) string {
return fmt.Sprintf("%v", a)
}
func IsDirty[T any](a T, b T) bool {
return !reflect.DeepEqual(a, b)
}