Improvements in error handling & descriptions

This commit is contained in:
2025-02-27 09:20:22 +02:00
parent 5b84960c5a
commit 701a5df44f
5 changed files with 32 additions and 15 deletions

9
common/text/text.go Normal file
View File

@@ -0,0 +1,9 @@
package text
import "strings"
// RemoveNullChars removes all null characters from the input string.
func RemoveNullChars(input string) string {
// Replace all null characters with an empty string
return strings.ReplaceAll(input, "\u0000", "")
}