10 lines
249 B
Go
10 lines
249 B
Go
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", "")
|
|
}
|