Improvements in error handling & descriptions
This commit is contained in:
9
common/text/text.go
Normal file
9
common/text/text.go
Normal 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", "")
|
||||
}
|
||||
Reference in New Issue
Block a user