From 31c8096e7f8bf4898708167489c98cd48774aeb4 Mon Sep 17 00:00:00 2001 From: Tom Wright Date: Thu, 24 Oct 2024 20:10:14 +0100 Subject: [PATCH] Remove unused code --- internal/util/to_string.go | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 internal/util/to_string.go diff --git a/internal/util/to_string.go b/internal/util/to_string.go deleted file mode 100644 index 04958ec8..00000000 --- a/internal/util/to_string.go +++ /dev/null @@ -1,26 +0,0 @@ -package util - -import ( - "fmt" -) - -// ToString converts the given value to a string. -func ToString(value any) string { - switch v := value.(type) { - case nil: - return "null" - case string: - return v - case []byte: - return string(v) - case int, int8, int16, int32, int64, - uint, uint8, uint16, uint32, uint64: - return fmt.Sprintf("%d", v) - case float32, float64: - return fmt.Sprintf("%f", v) - case bool: - return fmt.Sprint(v) - default: - return fmt.Sprint(v) - } -}